Skip to content

Commit

Permalink
Gardening for the new SignalProducer start handler.
Browse files Browse the repository at this point in the history
  • Loading branch information
andersio committed Jan 12, 2017
1 parent ca79c9e commit b5e5af7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Sources/SignalProducer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ import Result
public struct SignalProducer<Value, Error: Swift.Error> {
public typealias ProducedSignal = Signal<Value, Error>

fileprivate let startHandler: () -> (signal: Signal<Value, Error>, () -> Void, Disposable)
/// The creation of the `Signal` graph is decoupled from the invocation of the
/// starting side effect. This allows `lift` to compose at the level of
/// `Signal`s directly, and dodge the need of extra relaying signals.
fileprivate let startHandler: () -> (signal: Signal<Value, Error>, start: () -> Void, interrupter: Disposable)

/// Initializes a `SignalProducer` that will emit the same events as the
/// given signal.
Expand Down

0 comments on commit b5e5af7

Please sign in to comment.