SushiEngine::EventBus::TypedChannel
subscribe
template <auto Member>
Subscription subscribe(IBus &bus, typename BatchMemberTraits< decltype(Member)>::ClassType &instance, PhaseIndex phase, OwnerId owner=K_HOST_OWNER) const noexceptParameters
| Name | Type |
|---|---|
bus | IBus & |
instance | typename BatchMemberTraits< decltype(Member)>::ClassType & |
phase | PhaseIndex |
owner | OwnerId |
Returns
Subscription
The token that owns the subscription and unsubscribes on destruction.
Description
Subscribes instance's member Member at phase for owner.
Precondition
bus outlives the returned token.

