On‐destruction callback that wraps and owns a folly::Function.
Synopsis
Declared in <folly/io/async/EventBase.h>
class FunctionOnDestructionCallback
: public OnDestructionCallback
Base Classes
Name |
Description |
Base class for user callbacks run during EventBase destruction. |
Member Functions
Name |
Description |
|
Constructs the callback from a function. |
Move assignment. |
|
Attempts to cancel the callback. |
|
|
Runs the wrapped function on destruction. |
Protected Member Functions
Name |
Description |
|
Runs the callback body and deletes this callback. |
Created with MrDocs