0
我有两个来自通知的信号。这些从外部框架中被解雇。如何结合两个信号或OR
let successSignal = NotificationCenter.default.reactive.notifications(forName: NSNotification.Name(rawValue: "someNotification"))
let failedSignal = NotificationCenter.default.reactive.notifications(forName: NSNotification.Name(rawValue: "someNotification"))
现在我想将它们结合起来,Signal<Notification, Error>
类型的一个信号。 如果successSignal
火灾发送值,如果failedSinal
火灾发送错误。
我不知道如何管理这个。