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

◆ make_error() [4/4]

template<typename T>
PromiseResult< T > fl::task::make_error ( Error && error)

Helper function to create an error result (move)

Template Parameters
TThe value type
Parameters
errorThe error (moved)
Returns
result containing the error

Definition at line 161 of file promise_result.h.

161 {
162 return PromiseResult<T>(fl::move(error));
163}
Result type for promise operations.
constexpr remove_reference< T >::type && move(T &&t) FL_NO_EXCEPT
Definition move.h:30

References fl::FL_NO_EXCEPT, and fl::adl_barrier::move().

+ Here is the call graph for this function: