folly::channels::ChannelCallbackHandle

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

NameDescription
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

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