FastLED 3.9.15
Loading...
Searching...
No Matches

◆ cleanup_completed_promises()

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

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

494 {
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}
fl::vector< fl::task::Promise< Response > > mActivePromises
Definition fetch.h:264
void push_back(const T &value) FL_NOEXCEPT
Definition vector.h:624
constexpr remove_reference< T >::type && move(T &&t) FL_NOEXCEPT
Definition s16x16x4.h:28

References mActivePromises, fl::fl::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: