Skip to content

Commit 5424f44

Browse files
committed
[Deprecations+Removals] Fix scheduler types
1 parent 163a28b commit 5424f44

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Sources/Deprecations+Removals.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ extension SignalProtocol {
179179
public func skip(_ count: Int) -> Signal<Value, Error> { fatalError() }
180180

181181
@available(*, unavailable, renamed:"observe(on:)")
182-
public func observeOn(_ scheduler: UIScheduler) -> Signal<Value, Error> { fatalError() }
182+
public func observeOn(_ scheduler: SchedulerProtocol) -> Signal<Value, Error> { fatalError() }
183183

184184
@available(*, unavailable, renamed:"combineLatest(with:)")
185185
public func combineLatestWith<S: SignalProtocol>(_ otherSignal: S) -> Signal<(Value, S.Value), Error> { fatalError() }
@@ -203,7 +203,7 @@ extension SignalProtocol {
203203
public func takeWhile(_ predicate: (Value) -> Bool) -> Signal<Value, Error> { fatalError() }
204204

205205
@available(*, unavailable, renamed:"timeout(after:raising:on:)")
206-
public func timeoutWithError(_ error: Error, afterInterval: TimeInterval, onScheduler: SchedulerProtocol) -> Signal<Value, Error> { fatalError() }
206+
public func timeoutWithError(_ error: Error, afterInterval: TimeInterval, onScheduler: DateSchedulerProtocol) -> Signal<Value, Error> { fatalError() }
207207

208208
@available(*, unavailable, message: "This Signal may emit errors which must be handled explicitly, or observed using `observeResult(_:)`")
209209
public func observeNext(_ next: (Value) -> Void) -> Disposable? { fatalError() }
@@ -233,10 +233,10 @@ extension SignalProducerProtocol {
233233
public func retry(_ count: Int) -> SignalProducer<Value, Error> { fatalError() }
234234

235235
@available(*, unavailable, renamed:"observe(on:)")
236-
public func observeOn(_ scheduler: UIScheduler) -> SignalProducer<Value, Error> { fatalError() }
236+
public func observeOn(_ scheduler: SchedulerProtocol) -> SignalProducer<Value, Error> { fatalError() }
237237

238238
@available(*, unavailable, renamed:"start(on:)")
239-
public func startOn(_ scheduler: UIScheduler) -> SignalProducer<Value, Error> { fatalError() }
239+
public func startOn(_ scheduler: SchedulerProtocol) -> SignalProducer<Value, Error> { fatalError() }
240240

241241
@available(*, unavailable, renamed:"combineLatest(with:)")
242242
public func combineLatestWith<U>(_ otherProducer: SignalProducer<U, Error>) -> SignalProducer<(Value, U), Error> { fatalError() }
@@ -275,7 +275,7 @@ extension SignalProducerProtocol {
275275
public func takeWhile(_ predicate: (Value) -> Bool) -> SignalProducer<Value, Error> { fatalError() }
276276

277277
@available(*, unavailable, renamed:"timeout(after:raising:on:)")
278-
public func timeoutWithError(_ error: Error, afterInterval: TimeInterval, onScheduler: SchedulerProtocol) -> SignalProducer<Value, Error> { fatalError() }
278+
public func timeoutWithError(_ error: Error, afterInterval: TimeInterval, onScheduler: DateSchedulerProtocol) -> SignalProducer<Value, Error> { fatalError() }
279279

280280
@available(*, unavailable, message:"This SignalProducer may emit errors which must be handled explicitly, or observed using `startWithResult(_:)`.")
281281
public func startWithNext(_ next: (Value) -> Void) -> Disposable { fatalError() }

0 commit comments

Comments
 (0)