Skip to content

Commit f8e1272

Browse files
committed
Concurrency: appease the api-digester
Looks like simply putting the availability attribute on the extension does not suffice. Putting the availability attr on the function itself to appease the api-digester.
1 parent 05512b1 commit f8e1272

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/public/Concurrency/Task.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ extension Task: Equatable {
190190
extension Task where Failure == Error {
191191
@_spi(MainActorUtilities)
192192
@MainActor
193+
@available(SwiftStdlib 5.9, *)
193194
public static func startOnMainActor(
194195
priority: TaskPriority? = nil,
195196
@_inheritActorContext @_implicitSelfCapture _ work: __owned @Sendable @escaping @MainActor() async throws -> Success
@@ -208,6 +209,7 @@ extension Task where Failure == Error {
208209
extension Task where Failure == Never {
209210
@_spi(MainActorUtilities)
210211
@MainActor
212+
@available(SwiftStdlib 5.9, *)
211213
public static func startOnMainActor(
212214
priority: TaskPriority? = nil,
213215
@_inheritActorContext @_implicitSelfCapture _ work: __owned @Sendable @escaping @MainActor() async -> Success

0 commit comments

Comments
 (0)