FastLED 3.9.15
Loading...
Searching...
No Matches

◆ make_error() [1/4]

template<typename T>
result< T > fl::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 178 of file promise_result.h.

178 {
179 return result<T>(Error(message));
180}
Result type for promise operations.
Error type for promises.
Definition promise.h:53