Skip to main content

spawn

Function spawn 

Source
pub fn spawn(dev: &DevConfig, pool: Arc<WorkerPool>) -> Result<WatchGuard>
Expand description

Start the dev-mode file watcher.

Must be called from within a Tokio runtime (the debounce callback spawns the reload task onto the current runtime). Returns a guard that must be kept alive; dropping it stops the watcher.