Skip to content

Commit 5996da0

Browse files
committed
[Concurrency] Remove symbols of startSynchronously, make it AEIC
In preparation for removal. This spelling of Task.immediate was before SE-review and was NOT accepted and therefore we should try to remove it entirely.
1 parent 664be9b commit 5996da0

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

stdlib/public/Concurrency/Task+immediate.swift.gyb

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,10 @@ import Swift
3333
@available(SwiftStdlib 6.2, *)
3434
extension Task where Failure == ${FAILURE_TYPE} {
3535

36-
// FIXME: This method is left in place to give adopters time to switch to `immediate` but it's going
37-
// to be removed soon, since this spelling was rejected as part of SE-0472 proposal.
3836
@available(SwiftStdlib 6.2, *)
39-
@available(*, deprecated, renamed: "immediate")
40-
// Used to preserve the symbols as originally declared without `@isolated(any)` attribute on `operation:`.
41-
% if FAILURE_TYPE == "Error":
42-
@_silgen_name("$sScTss5Error_pRs_rlE18startSynchronously4name8priority_ScTyxsAA_pGSSSg_ScPSgxyYaKcntFZ")
43-
% elif FAILURE_TYPE == "Never":
44-
@_silgen_name("$sScTss5NeverORs_rlE18startSynchronously4name8priority_ScTyxABGSSSg_ScPSgxyYaKcntFZ")
45-
% end
37+
@available(*, deprecated, message: "Deprecated spelling of Task.immediate. This method will be removed.")
4638
@discardableResult
39+
@_alwaysEmitIntoClient // moved to AEIC in order to eventually remove this function.
4740
public static func startSynchronously(
4841
name: String? = nil,
4942
priority: TaskPriority? = nil,

0 commit comments

Comments
 (0)