Struct mioco::sched::Coroutine [] [src]

pub struct Coroutine { /* fields omitted */ }

Coroutine scheduling handle.

Through this interface schedulers can operate on coroutines.

Methods

impl CoroutineControl
[src]

Finish coroutine

impl CoroutineControl
[src]

Resume Coroutine.

Migrate to a different thread.

Move this Coroutine to be executed on a SchedulerThread for a given thread_id.

Will panic if thread_id is not valid.

Finish migrating Coroutine by attaching it to a new thread.

Is this Coroutine ready after yield_now()?

Get coroutine user-provided data.

Trait Implementations

impl Drop for CoroutineControl
[src]

A method called when the value goes out of scope. Read more