Function ump_server::task::spawn

source ·
pub fn spawn<S, R, E, RV, F>(
    hbldr: impl FnOnce(&Client<S, R, E>) -> Result<F, E>
) -> Result<(Client<S, R, E>, JoinHandle<Option<RV>>), E>
where S: 'static + Send, R: 'static + Send, E: 'static + Send, RV: 'static + Send, F: Handler<S, R, E, RV> + Send + 'static,
Available on crate feature tokio only.
Expand description

Run a task which will process incoming messages from an ump server end-point.

See top module’s documentation for an overview of the dispatch loop.