Open kdubb opened 1 year ago
withTaskCancellationHandler
The “new” signature is already used in the code so shouldn’t have an impact on platform/swift version support.
await wait(for:timeout:)
waitForExpectations
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)
waitForExpectations(timeout:)
Code
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
await wait(for:timeout:)
andwaitForExpectations
withawait fulfillment(of:timeout:)
The current use of
await wait(for:timeout:)
andwaitForExpectations(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