Function future_utils::thread_future
[−]
[src]
pub fn thread_future<F, R>(f: F) -> ThreadFuture<R> where
R: Send + 'static,
F: FnOnce() -> R + Send + 'static,
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.