Skip to content

Actor isolation inference: @IBAction implies @MainActor(unsafe) #40090

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 9, 2021

Conversation

DougGregor
Copy link
Member

@IBAction calls are always delivered in the main thread, so reflect that
by inferring @MainActor(unsafe) for such methods whenever no other
actor isolation is provided.

Implements rdar://84474640.

@DougGregor
Copy link
Member Author

@swift-ci please smoke test

@IBAction calls are always delivered in the main thread, so reflect that
by inferring `@MainActor(unsafe)` for such methods whenever no other
actor isolation is provided.

Implements rdar://84474640.
@DougGregor DougGregor force-pushed the ibaction-implies-mainactor branch from 1b4ece6 to ffd435d Compare November 9, 2021 01:13
@DougGregor
Copy link
Member Author

@swift-ci please smoke test

@DougGregor DougGregor merged commit 8651e6a into swiftlang:main Nov 9, 2021
@DougGregor DougGregor deleted the ibaction-implies-mainactor branch November 9, 2021 07:10
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