| 492 | } |
| 493 | |
| 494 | void 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 |
nothing calls this directly
no test coverage detected