Function mz_server_core::serve

source ·
pub async fn serve<C, S>(
    conns: C,
    server: S,
    wait_timeout: Option<Duration>
) -> JoinSet<()>
where C: ConnectionStream, S: Server,
Expand description

Serves incoming TCP connections from conns using server. wait_timeout is the time to wait after conns terminates for outstanding connections to complete. Returns handles to the outstanding connections after wait_timeout has expired or all connections have completed.