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

Method complete_error

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

Source from the content-addressed store, hash-verified

338}
339
340void FetchRequest::complete_error(const char* message) {
341 close_socket();
342 mState = FAILED;
343
344 if (mPromise.valid() && !mPromise.is_completed()) {
345 mPromise.complete_with_error(fl::task::Error(message));
346 }
347}
348
349void FetchRequest::close_socket() {
350 if (mSocketFd >= 0) {

Callers

nothing calls this directly

Calls 4

ErrorClass · 0.85
complete_with_errorMethod · 0.80
validMethod · 0.45
is_completedMethod · 0.45

Tested by

no test coverage detected