Signal
-
Represents a signal event.
Signals must conform to the grammar:
See morevalue* (failed | completed | interrupted)?
Declaration
Swift
public enum Event<Value, Error: Swift.Error>
-
An Observer is a simple wrapper around a function which can receive Events (typically from a Signal).
See moreDeclaration
Swift
public final class Observer<Value, Error: Swift.Error>
-
A push-driven stream that sends Events over time, parameterized by the type of values being sent (
Value
) and the type of failure that can occur (Error
). If no failures should be possible, NoError can be specified forError
.An observer of a Signal will see the exact same sequence of events as all other observers. In other words, events will be sent to all observers at the same time.
Signals are generally used to represent event streams that are already “in progress,” like notifications, user input, etc. To represent streams that must first be started, see the SignalProducer type.
A Signal is kept alive until either of the following happens: 1. its input observer receives a terminating event; or 2. it has no active observers, and is not being retained.
See moreDeclaration
Swift
public final class Signal<Value, Error: Swift.Error>
-
Describes how multiple producers should be joined together.
See moreDeclaration
Swift
public enum FlattenStrategy: Equatable