-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Concurrency][SE-review update] Task names update #80984
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
base: main
Are you sure you want to change the base?
Conversation
@swift-ci please smoke test |
@swift-ci please test |
@swift-ci please test source compatibility |
|
||
import Swift | ||
|
||
// ==== Task.init ------------------------------------------------ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Continuing the quest to stop writing almost the same method 12 times 😉
- init (3)
- init
- SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY
- $Embedded version
- init + throwing (3)
- ...
- detached (3)
- ...
- detached + throwing (3)
- ...
So we're saving some repetition here... This should eventually also consume the Task.swift
and Task+TaskExecutor.swift
initializers, but I'm taking it one step at a time, to not cause unnecessary risk for this change.
Linux failure seems unrelated
|
Windows too hm
|
@swift-ci please smoke test |
@swift-ci please test source compatibility |
@@ -31,7 +31,7 @@ import Swift | |||
% 'ThrowingDiscardingTaskGroup' | |||
% ], | |||
% [ | |||
% '@available(SwiftStdlib 6.2, *)', | |||
% '@available(SwiftStdlib 5.1, *)', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small win, but it's nice to fix just a single line rather than hunt around 8 locations where to fix it
@swift-ci please test source compatibility |
@swift-ci please smoke test |
Well, this turned out quite more complex:
That's, 50 declarations in total, and I just noticed we didn't do startSynchronously + detached, so that's 2 more. |
7c7607b
to
16119e5
Compare
No description provided.