Adapts a class-based handler to the EventHandler function signature and subscribes it to the bus. Returns the Unsubscribe function.
EventHandler
Unsubscribe
The event payload type
The event bus to subscribe to
Event type name
Class-based handler instance
Unsubscribe function
0.1.0
Adapts a class-based handler to the
EventHandlerfunction signature and subscribes it to the bus. Returns theUnsubscribefunction.