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

Method reject

src/fl/task/promise.h:81–85  ·  view source on GitHub ↗

Create a rejected Promise with error

Source from the content-addressed store, hash-verified

79
80 /// Create a rejected Promise with error
81 static Promise<T> reject(const Error& error) FL_NOEXCEPT { // okay static in header
82 auto p = create();
83 p.complete_with_error(error);
84 return p;
85 }
86
87 /// Create a rejected Promise with error message
88 static Promise<T> reject(const fl::string& error_message) FL_NOEXCEPT { // okay static in header

Callers 2

complete_with_errorMethod · 0.45
initializeMethod · 0.45

Calls 3

createFunction · 0.85
ErrorClass · 0.85
complete_with_errorMethod · 0.80

Tested by

no test coverage detected