Struct fibers::fiber::SchedulerHandle [] [src]

pub struct SchedulerHandle { /* fields omitted */ }

A handle of a scheduler.

Methods

impl SchedulerHandle
[src]

Wakes up a specified fiber in the scheduler.

This forces the fiber to be pushed to the run queue of the scheduler.

Trait Implementations

impl Debug for SchedulerHandle
[src]

Formats the value using the given formatter.

impl Clone for SchedulerHandle
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Spawn for SchedulerHandle
[src]

Spawns a fiber which will execute given boxed future.

Spawns a fiber which will execute given future.

Equivalent to self.spawn(futures::lazy(|| f())).

Spawns a fiber and returns a future to monitor it's execution result.

Converts this instance into a boxed object.