Skip to main content

spawn_with

Function spawn_with 

Source
pub fn spawn_with(
    key: TypeId,
    name: &'static str,
    spec: LoadSpec<'static>,
    debounce: Duration,
    mode: WatchMode,
    reload: impl Fn() -> Result<Option<String>, Error> + Send + 'static,
) -> Result<WatchHandle>
Available on crate feature watch only.
Expand description

spawn, with the detection strategy chosen explicitly.

ยงErrors

As spawn.