std1.0.0-beta-7 SafeC docs

std :: async::future

Struct std::YieldNow

#include <std/async/future.h> source

struct YieldNow {
    int yielded;
}

Pending once (after waking itself), then Ready: gives the executor a chance to run other tasks (Rust's yield_now / tokio::task::yield_now).

Fields

§int yieldedsource

Methods

§static struct YieldNow new()source · definition
§struct Poll<Unit> poll(&Context cx)source · definition
§void drop()source · definition