A callback handle for a consumption operation on a channel. The consumption operation will be cancelled when this handle is destroyed.

Synopsis

Declared in <folly/channels/ChannelCallbackHandle.h>

class ChannelCallbackHandle;

Member Functions

Name

Description

ChannelCallbackHandle [constructor]

Constructors

~ChannelCallbackHandle [destructor]

Destroys the handle, cancelling the consumption operation if still active.

operator=

Move‐assigns a handle, cancelling the current operation and transferring ownership.

reset

Cancels the consumption operation and detaches this handle.

Non-Member Functions

Name

Description

consumeChannelWithCallback

This function takes a Receiver, and consumes updates from that receiver with a callback.

Created with MrDocs