Function ump_ng_server::task::spawn_preinit
source · pub fn spawn_preinit<P, S, R, E, RV>(
server: Server<P, S, R, E>,
handler: impl Handler<P, S, R, E, RV> + Send + 'static
) -> JoinHandle<Option<RV>>Available on crate feature
tokio only.Expand description
Spawn a task to run a pre-initialized handler.
It is assumed that the caller has initialized the handler, thus its
init() method will not be called.