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

◆ set_canceled()

void fl::task::TimeTask::set_canceled ( )
inlineoverridevirtual

Implements fl::task::ITaskImpl.

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

134 {
135 mCanceled = true;
136 // Release callbacks immediately to free captured variables (e.g. promises
137 // holding response objects). Without this, captures survive until the
138 // scheduler erases the task on its next update pass.
139 mThenCallback = {};
140 mCatchCallback = {};
141 mHasThen = false;
142 mHasCatch = false;
143 }
function< void()> mThenCallback
Definition task.cpp.hpp:208
function< void(const Error &)> mCatchCallback
Definition task.cpp.hpp:209

References mCanceled, mCatchCallback, mHasCatch, mHasThen, and mThenCallback.