MCPcopy Create free account
hub / github.com/Extra-Creativity/Modern-Cpp-Basics / Test

Function Test

13-Multithreading/Answer-code/ThreadGroup.cpp:74–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72};
73
74void Test(std::stop_token token, int i)
75{
76 while (!token.stop_requested())
77 {
78 std::println("Hello, {}", i);
79 std::this_thread::sleep_for(2ms);
80 }
81}
82
83int main()
84{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected