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

◆ from_error()

static error_code fl::asio::error_code::from_error ( const fl::task::Error & e)
inlinestatic

Convert from fl::task::Error for interop with existing FastLED code.

Definition at line 47 of file error_code.h.

47 {
48 if (e.is_empty()) {
49 return error_code();
50 }
52 }
error_code() FL_NO_EXCEPT
Definition error_code.h:35
fl::string message
Definition promise.h:40
bool is_empty() const FL_NO_EXCEPT
Definition promise.h:46

References error_code(), fl::FL_NO_EXCEPT, and fl::asio::unknown.

+ Here is the call graph for this function: