-
Notifications
You must be signed in to change notification settings - Fork 429
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Credits to @pointfreeco for the work done in: https://github.com/pointfreeco/combine-schedulers ## Changes - Add new `async` APIs to `DateScheduler` to enable waiting for them in asynchronous contexts: + `sleep(for:leeway) async` + `sleep(until:leeway) async` + `timer(interval:leeway) async` - Add new `async` variants `TestScheduler`'s `advance` and `run` APIs, to enable waiting for them in asynchronous contexts: + `advance()` async` + `advance(by:) async` (`DispatchTimeInterval` and `TimeInterval`) + `advance(to:) async` + `run() async` - Refactor `TestScheduler.advance(to:)`'s loop condition to be based on `_currentDate` instead of `scheduledActions.count` to be consistent with the new `async` variant. - Add `NSRecursiveLock.withLock` implementation for older OS versions.
- Loading branch information
Showing
6 changed files
with
503 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.