|
@@ -7,8 +7,8 @@ public extension Bus { |
|
|
public init( |
|
|
public init( |
|
|
_ keys: Set<String>, |
|
|
_ keys: Set<String>, |
|
|
_ handler: @escaping ((String, T) -> Void), |
|
|
_ handler: @escaping ((String, T) -> Void), |
|
|
opt: [Option] = [], |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
opt: [Option] = [] |
|
|
|
|
|
) { |
|
|
Bus.receive(keys, handler, opt: opt, sub: &subscriptions) |
|
|
Bus.receive(keys, handler, opt: opt, sub: &subscriptions) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|