A list of channel callback handles. When consumeChannelWithCallback is invoked with a list, a cancellation handle is automatically added to the list for the consumption operation. Similarly, when a consumption operation is completed, the handle is automatically removed from the lists.

Synopsis

Declared in <folly/channels/ChannelCallbackHandle.h>

class ChannelCallbackHandleList;

Description

If the list still has any cancellation handles remaining when the list is destroyed, cancellation is triggered for each handle in the list.

This list is not thread safe.

Member Functions

Name

Description

ChannelCallbackHandleList [constructor]

Constructors

~ChannelCallbackHandleList [destructor]

Destroys the list, cancelling every handle it still holds.

operator=

Move‐assigns a list, transferring ownership of all handles.

clear

Cancels and removes every handle currently in the list.

Created with MrDocs