MCPcopy Create free account
hub / github.com/FastLED/FastLED / cleanup_completed_promises

Method cleanup_completed_promises

src/fl/net/http/fetch.cpp.hpp:494–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

492}
493
494void FetchManager::cleanup_completed_promises() {
495 // Rebuild vector without completed promises
496 fl::vector<fl::task::Promise<Response>> active_promises;
497 for (const auto& promise : mActivePromises) {
498 if (promise.valid() && !promise.is_completed()) {
499 active_promises.push_back(promise);
500 }
501 }
502 mActivePromises = fl::move(active_promises);
503}
504
505// WASM promise management methods removed - no longer needed
506// Promises are now handled directly via shared_ptr capture in callbacks

Callers

nothing calls this directly

Calls 3

validMethod · 0.45
is_completedMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected