Skip to content

Conversation

grynspan
Copy link
Contributor

This change makes waitForExpectations() as main-actor-isolated, as it is in Xcode's version of XCTest. It is marked @preconcurrency @MainActor so that existing synchronous functions can continue to use it without await or @MainActor.

Resolves #428.

@grynspan
Copy link
Contributor Author

@swift-ci please test

1 similar comment
@grynspan
Copy link
Contributor Author

@swift-ci please test

@grynspan
Copy link
Contributor Author

@swift-ci please test Windows

@grynspan
Copy link
Contributor Author

@swift-ci please clean test Windows

@grynspan
Copy link
Contributor Author

@swift-ci please test

@grynspan
Copy link
Contributor Author

@swift-ci please test

@grynspan
Copy link
Contributor Author

@swift-ci please clean test Windows

@grynspan
Copy link
Contributor Author

@swift-ci please test

@grynspan grynspan force-pushed the jgrynspan/waitForExpectations-should-be-main-actor-isolated branch 2 times, most recently from 7d8152e to 0afda42 Compare June 26, 2023 17:00
@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:25
@grynspan grynspan force-pushed the jgrynspan/waitForExpectations-should-be-main-actor-isolated branch from 0afda42 to 5607291 Compare June 26, 2023 18:34
@grynspan
Copy link
Contributor Author

@swift-ci please test

@grynspan
Copy link
Contributor Author

@swift-ci please test Windows

@grynspan
Copy link
Contributor Author

@swift-ci please test

@grynspan
Copy link
Contributor Author

@swift-ci please clean test Windows

@grynspan
Copy link
Contributor Author

Compiler crash happened again, so I'm just going to comment out the new pro forma unit tests for now.

@grynspan
Copy link
Contributor Author

@swift-ci please test

@grynspan
Copy link
Contributor Author

@swift-ci please test

@grynspan
Copy link
Contributor Author

@swift-ci please test Windows

1 similar comment
@grynspan
Copy link
Contributor Author

@swift-ci please test Windows

@grynspan
Copy link
Contributor Author

@swift-ci please test

@grynspan
Copy link
Contributor Author

@swift-ci please test Windows

@grynspan
Copy link
Contributor Author

@swift-ci please test

@grynspan
Copy link
Contributor Author

@swift-ci please test Windows

@grynspan grynspan merged commit c902f0f into main Jun 27, 2023
grynspan added a commit that referenced this pull request Jun 28, 2023
…ld-be-main-actor-isolated

Add @mainactor to waitForExpectations(timeout:handler:) #428
@compnerd compnerd deleted the jgrynspan/waitForExpectations-should-be-main-actor-isolated 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.

Add @MainActor to waitForExpectations(timeout:handler:)

5 participants