Skip to main content

spawn

Function spawn 

Source
pub fn spawn(
    backend: Arc<dyn DeviceBackend>,
    registry: PrinterRegistry,
    advertiser: Option<Arc<dyn AdvertiserControl>>,
    state_path: PathBuf,
) -> JoinHandle<()> 
Expand description

Spawn the polling task. Returns immediately. Drop the returned tokio::task::JoinHandle to abort the loop on server shutdown.