Function std::task::try_future[src]

pub fn try_future<T: Send>(f: proc(): Send -> T) -> Future<Result<T, Box<Any + Send>>>

Execute a function in another task and return a future representing the task's result.

This is equivalent to TaskBuilder::new().try_future.