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

◆ ok()

template<typename T>
bool fl::result< T >::ok ( ) const
inline

Check if the result is successful.

Returns
True if the result contains a value, false if it contains an error

Definition at line 60 of file promise_result.h.

60 {
61 return mResult.template is<T>();
62 }
fl::Variant< T, Error > mResult
Result type for promise operations.

References mResult.

Referenced by error(), error_message(), operator bool(), test_await_approach(), test_json_await(), value(), and value().

+ Here is the caller graph for this function: