subscribe
virtual SubscriptionHandle subscribe(ChannelHandle channel, const SubscriberDescription &subscriber) noexcept=0Parameters
| Name | Type |
|---|---|
channel | ChannelHandle |
subscriber | const SubscriberDescription & |
Returns
SubscriptionHandle
The subscription, or an invalid handle for an invalid channel.
Description
Adds a subscriber that the drain of its phase calls per batch.
Precondition
The caller is the main thread.

