Skip to content

Commit 6eb538a

Browse files
committed
[Diagnostics] Update educational note for AsyncCallerExecution feature to match @execution attribute split
1 parent 612ea0b commit 6eb538a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

userdocs/diagnostics/async-caller-execution.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
Proposed in [SE-0461], this feature changes the behavior of nonisolated async
44
functions to run on the actor to which the caller is isolated (if any) by
55
default, and provides an explicit way to express the execution semantics for
6-
these functions:
7-
* The `@execution(concurrent)` attribute specifies that a function must always
6+
these functions.
7+
8+
This feature was proposed in [SE-0461](https://github.com/swiftlang/swift-evolution/blob/main/proposals/0461-async-function-isolation.md)
9+
10+
* The `@concurrent` attribute specifies that a function must always
811
switch off of an actor to run.
912
This is the default behavior without `AsyncCallerExecution`.
10-
* The `@execution(caller)` attribute specifies that a function must always
13+
* The `nonisolated(nonsending)` modifier specifies that a function must always
1114
run on the caller's actor.
1215
This is the default behavior with `AsyncCallerExecution`.
1316

0 commit comments

Comments
 (0)