FastLED 3.10.8
Loading...
Searching...
No Matches

◆ cleanup_completed_promises()

void fl::net::http::FetchManager::cleanup_completed_promises ( )

Definition at line 496 of file fetch.cpp.hpp.

496 {
497 // Rebuild vector without completed promises
498 fl::vector<fl::task::Promise<Response>> active_promises;
499 for (const auto& promise : mActivePromises) {
500 if (promise.valid() && !promise.is_completed()) {
501 active_promises.push_back(promise);
502 }
503 }
504 mActivePromises = fl::move(active_promises);
505}
fl::vector< fl::task::Promise< Response > > mActivePromises
Definition fetch.h:264
void push_back(const T &value) FL_NO_EXCEPT
Definition vector.h:624
constexpr remove_reference< T >::type && move(T &&t) FL_NO_EXCEPT
Definition move.h:30

References fl::FL_NO_EXCEPT, mActivePromises, fl::adl_barrier::move(), and fl::vector< T >::push_back().

Referenced by update().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: