FastLED 3.10.6
Loading...
Searching...
No Matches

◆ catch_()

Handle & fl::task::Handle::catch_ ( function< void(const Error &)> on_catch)

Sets the callback invoked when task execution reports an error.

Parameters
on_catchCallback to invoke with the reported error.
Returns
This handle, for fluent configuration.

Definition at line 287 of file task.cpp.hpp.

287 {
288 if (mImpl) {
289 mImpl->set_catch(fl::move(on_catch));
290 }
291 return *this;
292}
shared_ptr< ITaskImpl > mImpl
Definition task.h:245
constexpr remove_reference< T >::type && move(T &&t) FL_NO_EXCEPT
Definition move.h:28

References Handle(), mImpl, and fl::move().

Referenced by operator=().

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