Skip to content

Commit 8611804

Browse files
committed
[Concurrency] Deprecate extractIsolation
1 parent 1484f1c commit 8611804

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/public/Concurrency/Actor.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ public macro Task(
125125
#if $IsolatedAny
126126
@_alwaysEmitIntoClient
127127
@available(SwiftStdlib 5.1, *)
128+
@available(*, deprecated, message: "Use `.isolation` on @isolated(any) closure values instead.")
128129
public func extractIsolation<each Arg, Result>(
129130
_ fn: @escaping @isolated(any) (repeat each Arg) async throws -> Result
130131
) -> (any Actor)? {

0 commit comments

Comments
 (0)