Skip to main content

spawn

Function spawn 

Source
pub fn spawn(
    registry: Arc<SessionsRegistry>,
    token: CancellationToken,
) -> JoinHandle<()> ⓘ
Expand description

Spawns the watcher loop, returning its JoinHandle.

Rescans every [WATCH_INTERVAL] and applies each action to registry, until token is cancelled. Parks idle when no Codex home can be resolved. Must be called from within a tokio runtime.