Skip to content

Spawn let syntax #37163

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 3 commits into from
Apr 30, 2021
Merged

Spawn let syntax #37163

merged 3 commits into from
Apr 30, 2021

Conversation

DougGregor
Copy link
Member

Introduce spawn let syntax as the preferred alias for async let, to track the proposal. While here, fix a bug with spawn let where we would reject string interpolations within a spawn let.

Fixes rdar://76020473

…ted.

Implicitly-generated interpolation variables are mutated within the
autoclosures created by a `spawn let`. Don't complain about them being
concurrently accessed, because they aren't.

Fixes rdar://76020473.
@DougGregor
Copy link
Member Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 493c867

@DougGregor
Copy link
Member Author

@swift-ci please test macOS

@DougGregor DougGregor merged commit a83c791 into swiftlang:release/5.5 Apr 30, 2021
@DougGregor DougGregor deleted the spawn-let-5.5 branch April 30, 2021 19:26
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.5 labels Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants