Skip to content

[Concurrency] Properly set task create flags in TaskGroup.startTaskSy… #80299

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 1 commit into from
Mar 26, 2025

Conversation

drexin
Copy link
Contributor

@drexin drexin commented Mar 26, 2025

…nchronously

rdar://147907609

When starting tasks synchronously on task groups, the task create flags for isSynchronousStart and isDiscardingTask were always set to false. With this change the former will always be true and the latter conditionally true for discarding task groups.

@drexin drexin requested a review from ktoso as a code owner March 26, 2025 07:15
@drexin
Copy link
Contributor Author

drexin commented Mar 26, 2025

@swift-ci smoke test

…nchronously

rdar://147907609

When starting tasks synchronously on task groups, the task create flags for isSynchronousStart and isDiscardingTask were always set to `false`. With this change the former will always be `true` and the latter conditionally `true` for discarding task groups.
@drexin
Copy link
Contributor Author

drexin commented Mar 26, 2025

@swift-ci smoke test

Copy link
Contributor

@ktoso ktoso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the catch, LGTM now!

@ktoso ktoso added the concurrency Feature: umbrella label for concurrency language features label Mar 26, 2025
@ktoso ktoso merged commit c89cb49 into swiftlang:main Mar 26, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
concurrency Feature: umbrella label for concurrency language features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants