FastLED 3.9.15
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_NOEXCEPT
Definition error_code.h:35
bool is_empty() const FL_NOEXCEPT
Definition promise.h:46
fl::string message
Definition promise.h:40

References error_code(), fl::task::Error::is_empty(), fl::task::Error::message, and fl::asio::unknown.

+ Here is the call graph for this function: