EventBus
public class EventBus
Undocumented
-
The default common
EventBusinstanceDeclaration
Swift
public static let `default`: EventBus -
The domain string that identify different
EventBusinstanceDeclaration
Swift
public let domain: String -
The construction of
EventBusDeclaration
Swift
public init(domain: String)Parameters
domainThe 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 }
View on GitHub
EventBus Class Reference