FastLED 3.10.8
Loading...
Searching...
No Matches

◆ make_error() [1/4]

template<typename T>
PromiseResult< T > fl::task::make_error ( const char * message)

Helper function to create an error result from C-string.

Template Parameters
TThe value type
Parameters
messageThe error message
Returns
result containing the error

Definition at line 179 of file promise_result.h.

179 {
180 return PromiseResult<T>(Error(message));
181}
Result type for promise operations.

References fl::Error, and fl::FL_NO_EXCEPT.