Skip to content

Conversation

@kdubb
Copy link

@kdubb kdubb commented Jul 16, 2023

Code

  • Updates all old signature withTaskCancellationHandler methods. Requires is a simple reordering of the closure parameters.

The “new” signature is already used in the code so shouldn’t have an impact on platform/swift version support.

Tests

  • Repalces all await wait(for:timeout:) and waitForExpectations with await fulfillment(of:timeout:)

The current use of await wait(for:timeout:) and waitForExpectations(timeout:) has been deprecated in async test methods due to a possibility of deadlocking the test (see https://developer.apple.com/documentation/xcode-release-notes/xcode-14_3-release-notes)

Description

Checklist

  • this PR is based on the main branch and is up-to-date, if not please rebase your branch on the top of main
  • the commits inside this PR have explicit commit messages
  • unit tests cover the new feature or the bug fix
  • the feature is documented in the README.md if it makes sense
  • the CHANGELOG is up-to-date

twittemb and others added 3 commits January 3, 2023 15:40
## Code
* Updates all old signature `withTaskCancellationHandler` methods. Requires is a simple reordering of the closure parameters.

The “new” signature is already used in the code so shouldn’t have an impact on platform/swift version support.

## Tests
* Repalces all `await wait(for:timeout:)` and `waitForExpectations` with `await fulfillment(of:timeout:)`

The current use of `await wait(for:timeout:)` and `waitForExpectations(timeout:)` has been deprecated in async test methods due to a possibility of deadlocking the test (see https://developer.apple.com/documentation/xcode-release-notes/xcode-14_3-release-notes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants