Trait fibers_tasque::TaskQueueExt
[−]
[src]
pub trait TaskQueueExt { fn async_call<F, T>(&self, f: F) -> AsyncCall<T>
where
F: FnOnce() -> T + Send + 'static,
T: Send + 'static; }
TaskQueue
extention.
Required Methods
fn async_call<F, T>(&self, f: F) -> AsyncCall<T> where
F: FnOnce() -> T + Send + 'static,
T: Send + 'static,
F: FnOnce() -> T + Send + 'static,
T: Send + 'static,
Executes the given function asynchronously.
The function f
will be executed by a worker thread managed by this task queue.
Implementations on Foreign Types
impl TaskQueueExt for TaskQueue
[src]
Implementors
impl TaskQueueExt for DefaultIoTaskQueue
impl TaskQueueExt for DefaultCpuTaskQueue