J'ai deux signaux de notifications. Ceux-ci ont été tirés d'un cadre externe.Comment combiner deux signaux avec OU
let successSignal = NotificationCenter.default.reactive.notifications(forName: NSNotification.Name(rawValue: "someNotification"))
let failedSignal = NotificationCenter.default.reactive.notifications(forName: NSNotification.Name(rawValue: "someNotification"))
Maintenant, je veux les combiner à un signal de type Signal<Notification, Error>
. Si successSignal
incendie envoie une valeur, si failedSinal
déclenche une erreur.
Je n'ai aucune idée de comment gérer cela.