std1.0.0-beta-7 SafeC docs

std :: async::executor

Trait std::Park

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

trait Park {
    long long now_ms();
    void park(long long timeout_ms);
    void unpark();
}

A source of time and of waiting, for executors (see above).

Required methods

§long long now_ms()source

monotonic milliseconds

§void park(long long timeout_ms)source

wait up to timeout (-1: until unpark), or less

§void unpark()source

end the current (or the next) park early