MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / schedule

Method schedule

tests/EduCoroutineStaticVarTest.cpp:40–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 std::list<std::coroutine_handle<>> _tasks{};
39
40 bool schedule()
41 {
42 auto task = _tasks.front();
43 _tasks.pop_front();
44
45 if(not task.done()) { task.resume(); }
46
47 return not _tasks.empty();
48 }
49
50 auto suspend() { return awaiter{*this}; }
51};

Callers 1

mainFunction · 0.80

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected