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

◆ complete_with_value() [1/2]

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

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

Definition at line 197 of file promise.h.

197 {
198 if (!valid()) return false;
199 return mImpl->resolve(value);
200 }
bool valid() const
Check if promise is valid.
Definition promise.h:122
const T & value() const
Get the result value (only valid if is_resolved() returns true)
Definition promise.h:172
fl::shared_ptr< detail::PromiseImpl< T > > mImpl
Shared pointer to implementation - this allows copying and sharing promise state.
Definition promise.h:223

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

+ Here is the call graph for this function: