MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / completedCount

Method completedCount

Libraries/Await/Await.cpp:2661–2672  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2659}
2660
2661size_t AwaitTaskRegistry::completedCount() const
2662{
2663 size_t count = 0;
2664 for (size_t idx = 0; idx < tasks.sizeInElements(); ++idx)
2665 {
2666 if (tasks[idx].isCompleted())
2667 {
2668 count++;
2669 }
2670 }
2671 return count;
2672}
2673
2674size_t AwaitTaskRegistry::capacity() const { return tasks.sizeInElements(); }
2675

Callers 1

taskRegistryMethod · 0.80

Calls 1

isCompletedMethod · 0.80

Tested by 1

taskRegistryMethod · 0.64