Attempts to cancel the callback.
Synopsis
Declared in <folly/io/async/EventBase.h>
bool
cancel();
Description
If the callback is running or has already finished running, cancellation will fail. If the callback is running when cancel() is called, cancel() will block until the callback completes.
Return Value
True if the callback was cancelled before running.
Created with MrDocs