Михаил Капелько pirms 10 mēnešiem
vecāks
revīzija
eb29bb6d9e
2 mainītis faili ar 15 papildinājumiem un 15 dzēšanām
  1. +0
    -15
      mod/BusX/src/Bus.Sender.swift
  2. +15
    -0
      mod/BusX/src/unused

+ 0
- 15
mod/BusX/src/Bus.Sender.swift Parādīt failu

@@ -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 Parādīt failu

@@ -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)
}
}
}

Notiek ielāde…
Atcelt
Saglabāt