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