Trait deno_graph::source::Reporter
source · [−]pub trait Reporter: Debug {
fn on_load(
&self,
specifier: &ModuleSpecifier,
modules_done: usize,
modules_total: usize
);
}
Expand description
A trait which can be used to allow the module graph to report status events to the user.
Required methods
fn on_load(
&self,
specifier: &ModuleSpecifier,
modules_done: usize,
modules_total: usize
)
fn on_load(
&self,
specifier: &ModuleSpecifier,
modules_done: usize,
modules_total: usize
)
A handler that is called after each load of a module. It contains the module specifier of the module that was loaded, and the number of modules seen (total number of unique specifiers seen), and the number of modules loaded (where Loader::load has been called, and the returned future is ready).