EventBusObservable
public protocol EventBusObservable
Undocumented
-
Register a message event for specify DataStruct
Declaration
Swift
func register<T>(on mode: DispatchMode, priority: EventBusPriority, messageEvent: @escaping (T) -> Void) -> EventSubscription<T> where T : EventPresentable
Parameters
mode
The dispatch model for subscribe
priority
a closure that use
T
as only parammessageEvent
a closure that use
T
as only paramReturn Value
A instance of
EventSubscription
, that hold the subscriber