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

Method complete_success

src/fl/net/http/fetch_request.cpp.hpp:331–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329}
330
331void FetchRequest::complete_success(const Response& resp) {
332 close_socket();
333 mState = COMPLETED;
334
335 if (mPromise.valid() && !mPromise.is_completed()) {
336 mPromise.complete_with_value(resp);
337 }
338}
339
340void FetchRequest::complete_error(const char* message) {
341 close_socket();

Callers

nothing calls this directly

Calls 3

complete_with_valueMethod · 0.80
validMethod · 0.45
is_completedMethod · 0.45

Tested by

no test coverage detected