Trait drone_core::thr::ThrExec [−][src]
Thread executor.
Required methods
fn wakeup(self)
[src]
Wakes up the thread.
fn waker(self) -> Waker
[src]
Returns a handle for waking up a thread.
Provided methods
fn exec<F, O>(self, fut: F) where
F: Future<Output = O> + Send + 'static,
O: ExecOutput,
[src]
F: Future<Output = O> + Send + 'static,
O: ExecOutput,
Adds an executor for the future fut
to the fiber chain and wakes up
the thread immediately.
fn exec_factory<C, F, O>(self, factory: C) where
C: FnOnce() -> F + Send + 'static,
F: Future<Output = O> + 'static,
O: ExecOutput,
[src]
C: FnOnce() -> F + Send + 'static,
F: Future<Output = O> + 'static,
O: ExecOutput,
Adds an executor for the future returned by factory
to the fiber chain
and wakes up the thread immediately.
fn add_exec<F, O>(self, fut: F) where
F: Future<Output = O> + Send + 'static,
O: ExecOutput,
[src]
F: Future<Output = O> + Send + 'static,
O: ExecOutput,
Adds an executor for the future fut
to the fiber chain.
The future fut
will start polling on the next thread wake-up.
fn add_exec_factory<C, F, O>(self, factory: C) where
C: FnOnce() -> F + Send + 'static,
F: Future<Output = O> + 'static,
O: ExecOutput,
[src]
C: FnOnce() -> F + Send + 'static,
F: Future<Output = O> + 'static,
O: ExecOutput,
Adds an executor for the future returned by factory
to the fiber
chain.
The future fut
will start polling on the next thread wake-up.