Home
last modified time | relevance | path

Searched refs:BlockingTask (Results 1 – 3 of 3) sorted by relevance

/external/rust/crates/tokio/src/runtime/blocking/
Dtask.rs6 pub(crate) struct BlockingTask<T> { struct
10 impl<T> BlockingTask<T> { impl
12 pub(crate) fn new(func: T) -> BlockingTask<T> { in new()
13 BlockingTask { func: Some(func) } in new()
18 impl<T> Unpin for BlockingTask<T> {} implementation
20 impl<T, R> Future for BlockingTask<T> implementation
Dpool.rs7 use crate::runtime::blocking::task::BlockingTask;
97 let (task, _handle) = task::joinable(BlockingTask::new(func)); in try_spawn_blocking()
/external/rust/crates/tokio/src/runtime/
Dhandle.rs1 use crate::runtime::blocking::task::BlockingTask;
201 let (task, handle) = task::joinable(BlockingTask::new(func)); in spawn_blocking()