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

Method storeCallback

src/platforms/wasm/js_fetch.cpp.hpp:66–69  ·  view source on GitHub ↗

Store callback for a request ID (using move semantics)

Source from the content-addressed store, hash-verified

64
65 // Store callback for a request ID (using move semantics)
66 void storeCallback(u32 request_id, FetchResponseCallback callback) {
67 fl::unique_lock<fl::mutex> lock(mCallbacksMutex);
68 mPendingCallbacks[request_id] = fl::move(callback);
69 }
70
71 // Retrieve and remove callback for a request ID (using move semantics)
72 fl::optional<FetchResponseCallback> takeCallback(u32 request_id) {

Callers 1

responseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected