template <typename... Args>
class CancelableCallback
Defined at line 46 of file ../../src/lib/fxl/functional/cancelable_callback.h
Public Methods
void CancelableCallback<void (Args...)> ()
Defined at line 49 of file ../../src/lib/fxl/functional/cancelable_callback.h
void CancelableCallback<void (Args...)> (fit::function<void (Args...)> callback)
Defined at line 51 of file ../../src/lib/fxl/functional/cancelable_callback.h
void Cancel ()
Cancels and drops the reference to the wrapped callback.
Defined at line 58 of file ../../src/lib/fxl/functional/cancelable_callback.h
bool IsCanceled ()
Returns true if the wrapped callback has been canceled.
Defined at line 65 of file ../../src/lib/fxl/functional/cancelable_callback.h
fit::function<void (Args...)> callback ()
Returns a callback that can be disabled by calling Cancel(). This returns a
null callback if this object currently does not wrap around a callback,
e.g. after a call to Cancel() or when in default-constructed state.
Defined at line 70 of file ../../src/lib/fxl/functional/cancelable_callback.h
void Reset (fit::function<void (Args...)> callback)
Sets |callback| as the closure that may be canceled. |callback| may not be
null. Outstanding and any previously wrapped callbacks are canceled.
Defined at line 74 of file ../../src/lib/fxl/functional/cancelable_callback.h