Trait nuclei::LocalAgnostikExecutor [−][src]
This trait represents an executor that is capable of spawning futures onto the same thread.
Required methods
pub fn spawn_local<F>(&self, future: F) -> JoinHandle<<F as Future>::Output>ⓘNotable traits for JoinHandle<R>
impl<R> Future for JoinHandle<R> where
R: 'static + Send, type Output = R;
where
F: Future + 'static,
<F as Future>::Output: 'static,
[src]
Notable traits for JoinHandle<R>
impl<R> Future for JoinHandle<R> where
R: 'static + Send, type Output = R;
F: Future + 'static,
<F as Future>::Output: 'static,
Spawns a future that doesn't implement Send.
The spawned future will be executed on the same thread that called spawn_local
.