Skip to main content

spawn_background_subsystems

Function spawn_background_subsystems 

Source
pub fn spawn_background_subsystems(
    mstore: &Arc<Store>,
    filestore: &Arc<FileStore>,
    id_store: &Arc<Store>,
    identity_store: &Arc<Store>,
) -> BackgroundSubsystems
Expand description

Event infrastructure + all background task spawns that don’t need AppState to exist yet: event bus/broker, editor file watcher, config watcher, sysinfo/watchdog/activity loops, the reactive handler + poller, the cloud push subscriber, messaging bridges (Discord/Telegram/Slack/ WhatsApp), docsite dir, messagebus, subagent watcher, history service, and the session archiver.