Skip to main content

spawn

Function spawn 

Source
pub async fn spawn<S: DeviceSession, F: Fn() -> S + Send + Sync + Clone + 'static>(
    ctx: SpawnContext,
    protocol: Arc<dyn Server>,
    factory: F,
    kinds: &'static [EventType],
) -> Result<SocketAddr>