Skip to content

[6.2][Concurrency] Remove symbols of startSynchronously, make it AEIC #83089

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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions stdlib/public/Concurrency/Task+immediate.swift.gyb
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,10 @@ import Swift
@available(SwiftStdlib 6.2, *)
extension Task where Failure == ${FAILURE_TYPE} {

// FIXME: This method is left in place to give adopters time to switch to `immediate` but it's going
// to be removed soon, since this spelling was rejected as part of SE-0472 proposal.
@available(SwiftStdlib 6.2, *)
@available(*, deprecated, renamed: "immediate")
// Used to preserve the symbols as originally declared without `@isolated(any)` attribute on `operation:`.
% if FAILURE_TYPE == "Error":
@_silgen_name("$sScTss5Error_pRs_rlE18startSynchronously4name8priority_ScTyxsAA_pGSSSg_ScPSgxyYaKcntFZ")
% elif FAILURE_TYPE == "Never":
@_silgen_name("$sScTss5NeverORs_rlE18startSynchronously4name8priority_ScTyxABGSSSg_ScPSgxyYaKcntFZ")
% end
@available(*, deprecated, message: "Deprecated spelling of Task.immediate. This method will be removed.")
@discardableResult
@_alwaysEmitIntoClient // moved to AEIC in order to eventually remove this function.
public static func startSynchronously(
name: String? = nil,
priority: TaskPriority? = nil,
Expand Down
2 changes: 0 additions & 2 deletions test/abi/macOS/arm64/concurrency.swift
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,6 @@ Added: _swift_task_getCurrentTaskName

// startSynchronously, immediate, addImmediateTask{UnlessCancelled}
Added: _swift_task_immediate
Added: _$sScTss5Error_pRs_rlE18startSynchronously4name8priority_ScTyxsAA_pGSSSg_ScPSgxyYaKcntFZ
Added: _$sScTss5NeverORs_rlE18startSynchronously4name8priority_ScTyxABGSSSg_ScPSgxyYaKcntFZ

// isIsolatingCurrentContext
Added: _swift_task_invokeSwiftIsIsolatingCurrentContext
Expand Down
2 changes: 0 additions & 2 deletions test/abi/macOS/x86_64/concurrency.swift
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,6 @@ Added: _swift_task_getCurrentTaskName

// startSynchronously, immediate, addImmediateTask{UnlessCancelled}
Added: _swift_task_immediate
Added: _$sScTss5Error_pRs_rlE18startSynchronously4name8priority_ScTyxsAA_pGSSSg_ScPSgxyYaKcntFZ
Added: _$sScTss5NeverORs_rlE18startSynchronously4name8priority_ScTyxABGSSSg_ScPSgxyYaKcntFZ

// isIsolatingCurrentContext
Added: _swift_task_invokeSwiftIsIsolatingCurrentContext
Expand Down