We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
isolation
1 parent 24c2d1a commit 8d67a37Copy full SHA for 8d67a37
stdlib/public/Concurrency/Actor.swift
@@ -73,8 +73,11 @@ public func _defaultActorDestroy(_ actor: AnyObject)
73
@usableFromInline
74
internal func _enqueueOnMain(_ job: UnownedJob)
75
76
+#if $Macros
77
/// Produce a reference to the actor to which the enclosing code is
78
/// isolated, or `nil` if the code is nonisolated.
79
@available(SwiftStdlib 5.1, *)
80
@freestanding(expression)
81
public macro isolation() -> (any Actor)? = Builtin.IsolationMacro
82
+#endif
83
+
0 commit comments