owner static method

Creates a listener scope owned by owner.

Omitting owner is equivalent to calling listen directly.

Implementation

static EventBusOwnerScope owner([EventSubscriptionOwner? owner]) {
  return EventBusOwnerScope._(owner);
}