From eb29bb6d9e25fb371afa5da34f69adea7e6f3d6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=9A=D0=B0=D0=BF?= =?UTF-8?q?=D0=B5=D0=BB=D1=8C=D0=BA=D0=BE?= Date: Thu, 28 Dec 2023 12:45:20 +0300 Subject: [PATCH] d --- mod/BusX/src/Bus.Sender.swift | 15 --------------- mod/BusX/src/{Bus.Receiver.swift => unused} | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 15 deletions(-) delete mode 100644 mod/BusX/src/Bus.Sender.swift rename mod/BusX/src/{Bus.Receiver.swift => unused} (52%) diff --git a/mod/BusX/src/Bus.Sender.swift b/mod/BusX/src/Bus.Sender.swift deleted file mode 100644 index 146638c..0000000 --- a/mod/BusX/src/Bus.Sender.swift +++ /dev/null @@ -1,15 +0,0 @@ -import Combine - -public extension Bus { - final class Sender { - var subscriptions = [AnyCancellable]() - - public init( - _ key: String, - _ node: AnyPublisher, - opt: [Option] = [] - ) { - Bus.send(key, node, opt: opt, sub: &subscriptions) - } - } -} diff --git a/mod/BusX/src/Bus.Receiver.swift b/mod/BusX/src/unused similarity index 52% rename from mod/BusX/src/Bus.Receiver.swift rename to mod/BusX/src/unused index f1751be..256f9df 100644 --- a/mod/BusX/src/Bus.Receiver.swift +++ b/mod/BusX/src/unused @@ -13,3 +13,18 @@ public extension Bus { } } } +import Combine + +public extension Bus { + final class Sender { + var subscriptions = [AnyCancellable]() + + public init( + _ key: String, + _ node: AnyPublisher, + opt: [Option] = [] + ) { + Bus.send(key, node, opt: opt, sub: &subscriptions) + } + } +}