Skip to main content

spawn

Function spawn 

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

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