Skip to content

[Concurrency] Drop the cloned code for Embedded around 'any Actor' #76766

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

Conversation

kubamracek
Copy link
Contributor

Now that any Actor is usable in Embedded Swift, we can drop all this ifdef'd code.

@kubamracek
Copy link
Contributor Author

@swift-ci please test

Copy link
Member

@rauhul rauhul left a comment

Choose a reason for hiding this comment

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

Nice, love negative diffs

@@ -184,159 +184,6 @@ public struct DiscardingTaskGroup {
let _: Void? = try await _taskGroupWaitAll(group: _group, bodyError: nil)
}

// Clone the task-creation routines in Embedded Swift so that we don't
// introduce an implicit use of `any Actor`.
#if !$Embedded
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you sure that the #if !$Embedded branch is the one to remove? It contains the @isolated(any) additions (introduced by commit a86b76a).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right, thanks! Fixed.

@kubamracek kubamracek force-pushed the embedded-dont-avoid-any-actor branch from 074bb55 to 9b56ea0 Compare September 30, 2024 17:30
@kubamracek
Copy link
Contributor Author

@swift-ci please 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.

Very happy to see some reduction of duplication for a change :) Thank you @kubamracek !

@kubamracek kubamracek merged commit 4b68c3f into swiftlang:main Oct 2, 2024
5 checks passed
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.

4 participants