Function blocking
Source pub fn blocking<T>(f: impl FnOnce(Sender<T>) + Send + 'static) -> Task<T>
Expand description
Creates a new Task
that will run the given closure in a new thread.
Any data sent by the closure through the [mpsc::Sender
] will be produced
by the Task
.