mirror of
https://github.com/ReactiveX/RxSwift.git
synced 2024-10-04 22:17:41 +03:00
Replace DispatchSource.schedule() with available methods
This commit is contained in:
parent
01febe3d22
commit
986fa8f3f6
@ -43,7 +43,7 @@ extension DispatchQueueConfiguration {
|
||||
let compositeDisposable = CompositeDisposable()
|
||||
|
||||
let timer = DispatchSource.makeTimerSource(queue: queue)
|
||||
timer.schedule(deadline: deadline, leeway: leeway)
|
||||
timer.scheduleOneshot(deadline: deadline, leeway: leeway)
|
||||
|
||||
// TODO:
|
||||
// This looks horrible, and yes, it is.
|
||||
@ -77,7 +77,7 @@ extension DispatchQueueConfiguration {
|
||||
var timerState = state
|
||||
|
||||
let timer = DispatchSource.makeTimerSource(queue: queue)
|
||||
timer.schedule(deadline: initial, repeating: dispatchInterval(period), leeway: leeway)
|
||||
timer.scheduleRepeating(deadline: initial, interval: dispatchInterval(period), leeway: leeway)
|
||||
|
||||
// TODO:
|
||||
// This looks horrible, and yes, it is.
|
||||
|
Loading…
Reference in New Issue
Block a user