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

◆ make_error() [3/4]

template<typename T>
PromiseResult< T > fl::task::make_error ( const fl::string & message)

Helper function to create an error result from string.

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

Definition at line 170 of file promise_result.h.

170 {
171 return PromiseResult<T>(Error(message));
172}
Result type for promise operations.

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