pub fn spawn_task<P, S, R, E, RV, F>(
hbldr: impl FnOnce(&Client<P, S, R, E>) -> Result<F, E>,
) -> Result<(Client<P, S, R, E>, JoinHandle<Option<RV>>), E>
Expand description
Launch a task that will process incoming messages from an ump-ng server end-point.
See top module’s documentation for an overview of the dispatch loop.
§Errors
An application-defined error E
is returned if the dispatch loop is
terminated by a handler returning ControlFlow::Break(E)
.