Михаил Капелько hace 10 meses
padre
commit
eb29bb6d9e
Se han modificado 2 ficheros con 15 adiciones y 15 borrados
  1. +0
    -15
      mod/BusX/src/Bus.Sender.swift
  2. +15
    -0
      mod/BusX/src/unused

+ 0
- 15
mod/BusX/src/Bus.Sender.swift Ver fichero

@@ -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 Ver fichero

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

Cargando…
Cancelar
Guardar