std1.0.0-beta-7 SafeC docs

std :: sync::task

Function std::run_rounds

#include <std/sync/task.h> source

generic<S: TaskRunner> int run_rounds(&S s, int max_rounds)

Runs at most max_rounds rounds of s (a bounded run_all, e.g. for a watchdog-fed main loop). Returns the tasks still active afterwards.