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.
1 parent ef18a25 commit c023f34Copy full SHA for c023f34
proposals/0461-async-function-isolation.md
@@ -327,8 +327,6 @@ The type of an `@execution(caller)` function declaration is an
327
```swift
328
class NotSendable { ... }
329
330
-func useAsValue(_ ns: NotSendable) async { ... }
331
-
332
@MainActor let global: NotSendable = .init()
333
334
@execution(caller)
@@ -344,7 +342,7 @@ func callSendableClosure() async {
344
342
await closure(global) // okay
345
343
}
346
347
-callSendableClosure(useAsValue)
+callSendableClosure()
348
```
349
350
In the above code, the calls to `closure` from `callSendableClosure` run on the
0 commit comments