Skip to main content

watch_package

Function watch_package 

Source
pub async fn watch_package(
    environment: Arc<RwLock<CommandEnvironment>>,
    path: impl AsRef<Path>,
    interval: Duration,
) -> Result<PackageWatcher>
Expand description

Install a manifest and start watching its canonical path before returning. Atomic editor saves are recommended. Invalid edits retain the last working package and produce an error event. Close waits for outstanding reload work.