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

Method awaiter

tests/EduCoroutineCoAwaitOperatorTest.cpp:37–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 {
36 std::chrono::system_clock::duration duration;
37 awaiter(std::chrono::system_clock::duration d)
38 : duration(d)
39 {}
40
41 bool await_ready() const { return duration.count() <= 0; }
42 void await_resume() {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected