Register error callback - returns reference for chaining.
- Parameters
-
| callback | Function to call when Promise rejects with error |
- Returns
- Reference to this Promise for chaining
Definition at line 125 of file promise.h.
125 {
126 if (!
valid())
return *
this;
127
129 return *this;
130 }
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().