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

◆ complete_with_value() [1/2]

template<typename T>
bool fl::task::Promise< T >::complete_with_value ( const T & value)
inline

Complete the Promise with a result (used by networking library)

Definition at line 183 of file promise.h.

183 {
184 if (!valid()) return false;
185 return mImpl->resolve(value);
186 }
fl::shared_ptr< detail::PromiseImpl< T > > mImpl
Shared pointer to implementation - this allows copying and sharing Promise state.
Definition promise.h:209
const T & value() const FL_NOEXCEPT
Get the result value (only valid if is_resolved() returns true)
Definition promise.h:158
bool valid() const FL_NOEXCEPT
Check if Promise is valid.
Definition promise.h:108

References FL_NOEXCEPT, mImpl, valid(), and value().

Referenced by fl::net::http::HttpStreamTransport::resolveRpc(), and fl::net::http::HttpStreamTransport::resolveRpcStream().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: