Skip to content

[Concurrency] DiscardingTaskGroup (rev 3) #62914

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 19 commits into from
Jan 11, 2023

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Jan 9, 2023

This is a cleaner implementation than previously attempted, in that it shares implementation bits with the TaskGroup, which is now called AccumulatingTaskGroup internally. We're able to re-use the common things and make the things a discarding group cannot do, not available at all, rather than awkwardly if-around-everything as the previous implementation attempt did (and without copying ALL of the implementation as the previous previous implementation did).

Replaces #62361

Resolves rdar://101965913

@ktoso ktoso added swift evolution pending discussion Flag → feature: A feature that has a Swift evolution proposal currently in review concurrency Feature: umbrella label for concurrency language features labels Jan 9, 2023
@ktoso ktoso changed the title [Concurrency] DiscardingTaskGroup (rev2) [Concurrency] DiscardingTaskGroup (rev3 - now with implementation shared with TaskGroup) Jan 9, 2023
@ktoso ktoso changed the title [Concurrency] DiscardingTaskGroup (rev3 - now with implementation shared with TaskGroup) [Concurrency] DiscardingTaskGroup (rev 3) Jan 9, 2023
@ktoso
Copy link
Contributor Author

ktoso commented Jan 9, 2023

@swift-ci please smoke test

@ktoso
Copy link
Contributor Author

ktoso commented Jan 9, 2023

@swift-ci please smoke test

@ktoso ktoso requested a review from DougGregor January 9, 2023 05:45
@ktoso
Copy link
Contributor Author

ktoso commented Jan 9, 2023

Seems CI now automatically assigns reviewers?

@ktoso
Copy link
Contributor Author

ktoso commented Jan 9, 2023

@swift-ci please smoke test

@ktoso
Copy link
Contributor Author

ktoso commented Jan 9, 2023

Seems like a minor real issue remains, but we're almost done :)

Copy link
Member

@DougGregor DougGregor left a comment

Choose a reason for hiding this comment

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

This looks great, and I like the new factoring on the C++ side

@xedin xedin removed their request for review January 10, 2023 20:45
@ktoso ktoso force-pushed the wip-task-group-twotypes branch from c9297b4 to 6d63cf4 Compare January 11, 2023 02:56
@ktoso ktoso force-pushed the wip-task-group-twotypes branch from 54ff0a5 to 128e2b2 Compare January 11, 2023 03:40
@ktoso
Copy link
Contributor Author

ktoso commented Jan 11, 2023

@swift-ci please smoke test

@ktoso ktoso added swift evolution approved Flag → feature: A feature that was approved through the Swift evolution process and removed swift evolution pending discussion Flag → feature: A feature that has a Swift evolution proposal currently in review labels Jan 11, 2023
@ktoso
Copy link
Contributor Author

ktoso commented Jan 11, 2023

Meh, stray import Darwin in test broke the windows CI -- landing this now :)

@ktoso
Copy link
Contributor Author

ktoso commented Jan 11, 2023

@swift-ci please smoke test and merge

@swift-ci swift-ci merged commit 93a0a6d into swiftlang:main Jan 11, 2023
@ktoso ktoso deleted the wip-task-group-twotypes branch January 11, 2023 09:38
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 swift evolution approved Flag → feature: A feature that was approved through the Swift evolution process
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants