EventBus
public class EventBus
Undocumented
-
The default common
EventBus
instanceDeclaration
Swift
public static let `default`: EventBus
-
The domain string that identify different
EventBus
instanceDeclaration
Swift
public let domain: String
-
The construction of
EventBus
Declaration
Swift
public init(domain: String)
Parameters
domain
The domain string
-
Declaration
Swift
public func post<T>(_ cargo: T) where T : EventPresentable
-
Declaration
Swift
public func register<T>(on mode: DispatchMode = .same, priority: EventBusPriority = .`default`, messageEvent: @escaping (T) -> Void) -> EventSubscription<T> where T: EventPresentable
-
Undocumented
Declaration
Swift
public var safe: EventBusSafePostable { get }