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

OnDestructionCallback

Base class for user callbacks run during EventBase destruction.

Member Functions

Name

Description

FunctionOnDestructionCallback [constructor]

Constructs the callback from a function.

operator=

Move assignment.

cancel

Attempts to cancel the callback.

onEventBaseDestruction [virtual]

Runs the wrapped function on destruction.

Protected Member Functions

Name

Description

runCallback [virtual]

Runs the callback body and deletes this callback.

Created with MrDocs