Skip to main content

spawn_listener

Function spawn_listener 

Source
pub async fn spawn_listener<D: Dispatch>(
    dispatch: Arc<D>,
    profile: Config,
    info: ServerInfo,
    config: ListenerConfig,
) -> Result<ListenerHandle>
Expand description

Bind config.addr and run the accept loop: one task per connection, graceful shutdown through the returned handle (SRV-001).