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

Method enumerateSequenceRequests

Libraries/Async/Async.cpp:1422–1435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1420}
1421
1422void SC::AsyncEventLoop::Internal::enumerateSequenceRequests(Function<void(AsyncRequest&)>& callback)
1423{
1424 AsyncSequence* sequence = sequences.front;
1425 while (sequence != nullptr)
1426 {
1427 AsyncRequest* async = sequence->runningRequest;
1428 if (async and async->state == AsyncRequest::State::Active and async->type != AsyncRequest::Type::LoopTimeout and
1429 (async->flags & (Flag_Internal | Flag_ManualCompletion)) == 0)
1430 {
1431 callback(*async);
1432 }
1433 sequence = sequence->next;
1434 }
1435}
1436
1437template <typename Lambda>
1438void SC::AsyncEventLoop::Internal::forEachActiveRequestList(Lambda& lambda)

Callers 1

enumerateRequestsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected