Skip to content

Conversation

@grynspan
Copy link
Contributor

See for example https://developer.apple.com/documentation/xctest/xctnsnotificationexpectation/handler

The handlers for XCTestExpectation subclasses need to be @Sendable because they can be invoked asynchronously or concurrently.

Resolves #454.

@grynspan
Copy link
Contributor Author

@swift-ci please test

@grynspan
Copy link
Contributor Author

@swift-ci please test Windows

@grynspan grynspan requested a review from stmontgomery June 26, 2023 17:26
@grynspan
Copy link
Contributor Author

@swift-ci please smoke test Windows

@grynspan
Copy link
Contributor Author

grynspan commented Jun 26, 2023

Blocked by swiftlang/swift-corelibs-foundation#4787. Resolved.

@grynspan
Copy link
Contributor Author

@swift-ci please clean test Windows

@grynspan grynspan merged commit 6682df5 into main Jun 27, 2023
grynspan added a commit that referenced this pull request Jun 28, 2023
@compnerd compnerd deleted the jgrynspan/sendable-handlers branch July 7, 2023 17:52
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.

Expectation handlers need to be @Sendable.

6 participants