Михаил Капелько 1 year ago
parent
commit
eb29bb6d9e
2 changed files with 15 additions and 15 deletions
  1. +0
    -15
      mod/BusX/src/Bus.Sender.swift
  2. +15
    -0
      mod/BusX/src/unused

+ 0
- 15
mod/BusX/src/Bus.Sender.swift View File

@@ -1,15 +0,0 @@
import Combine

public extension Bus {
final class Sender<T> {
var subscriptions = [AnyCancellable]()

public init(
_ key: String,
_ node: AnyPublisher<T, Never>,
opt: [Option] = []
) {
Bus.send(key, node, opt: opt, sub: &subscriptions)
}
}
}

mod/BusX/src/Bus.Receiver.swift → mod/BusX/src/unused View File

@@ -13,3 +13,18 @@ public extension Bus {
}
}
}
import Combine

public extension Bus {
final class Sender<T> {
var subscriptions = [AnyCancellable]()

public init(
_ key: String,
_ node: AnyPublisher<T, Never>,
opt: [Option] = []
) {
Bus.send(key, node, opt: opt, sub: &subscriptions)
}
}
}

Loading…
Cancel
Save