Added signal property to ColdSignalType extension instead.

This commit is contained in:
Tyler Cloutier 2016-11-06 11:52:40 -08:00
parent 0a14b55c75
commit 5551502eb5
1 changed files with 4 additions and 4 deletions

View File

@ -15,10 +15,6 @@ public final class ColdSignal<Value, ErrorType: Error>: ColdSignalType, Internal
return self
}
public var signal: Signal<Value, ErrorType> {
return self.identity
}
internal let startHandler: (Observer<Value, ErrorType>) -> Disposable?
private var cancelDisposable: Disposable?
@ -124,6 +120,10 @@ public protocol ColdSignalType: SignalType {
public extension ColdSignalType {
public var signal: Signal<Value, ErrorType> {
return self.identity
}
/// Invokes the closure provided upon initialization, and passes in a newly
/// created observer to which events can be sent.
func start() {