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 115 of file promise.h.
115 {
116 if (!
valid())
return *
this;
117
119 return *this;
120 }
fl::shared_ptr< detail::PromiseImpl< T > > mImpl
Shared pointer to implementation - this allows copying and sharing Promise state.
bool valid() const FL_NOEXCEPT
Check if Promise is valid.
Promise class that provides fluent .then() and .catch_() semantics This is a lightweight wrapper arou...
References Promise(), FL_NOEXCEPT, mImpl, fl::fl::move(), and valid().