pub fn thread_future<F, R>(f: F) -> ThreadFuture<R>Expand description
Run a synchronous function in a separate thread and return its result as a Future.
ยงNote
If the given function panics then so will this future.
pub fn thread_future<F, R>(f: F) -> ThreadFuture<R>Run a synchronous function in a separate thread and return its result as a Future.
If the given function panics then so will this future.