Searched refs:BlockingTask (Results 1 – 3 of 3) sorted by relevance
6 pub(crate) struct BlockingTask<T> { struct10 impl<T> BlockingTask<T> { impl12 pub(crate) fn new(func: T) -> BlockingTask<T> { in new()13 BlockingTask { func: Some(func) } in new()18 impl<T> Unpin for BlockingTask<T> {} implementation20 impl<T, R> Future for BlockingTask<T> implementation
7 use crate::runtime::blocking::task::BlockingTask;97 let (task, _handle) = task::joinable(BlockingTask::new(func)); in try_spawn_blocking()
1 use crate::runtime::blocking::task::BlockingTask;201 let (task, handle) = task::joinable(BlockingTask::new(func)); in spawn_blocking()