Contents

SushiEngine::EventBus::IBus

subscribe

virtual SubscriptionHandle subscribe(ChannelHandle channel, const SubscriberDescription &subscriber) noexcept=0

Parameters

NameType
channelChannelHandle
subscriberconst 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.