Register success callback - returns reference for chaining.
- Parameters
-
callback | Function to call when promise resolves successfully |
- Returns
- Reference to this promise for chaining
Definition at line 129 of file promise.h.
129 {
130 if (!
valid())
return *
this;
131
133 return *this;
134 }
bool valid() const
Check if promise is valid.
fl::shared_ptr< detail::PromiseImpl< T > > mImpl
Shared pointer to implementation - this allows copying and sharing promise state.
Promise class that provides fluent .then() and .catch_() semantics This is a lightweight wrapper arou...
References promise(), mImpl, fl::move(), and valid().