Skip to content

Commit efb45a8

Browse files
authored
Update README.md
1 parent 4de78b0 commit efb45a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ func testActorTaskOrdering() async {
3737
}
3838
```
3939

40-
Despite the spawned `Task` inheriting the serial `@MainActor` execution context, the ordering of the scheduled asynchronous work is not guaranteed.
40+
Because the spawned `Task` inherits a nonisolated execution context, the ordering of the scheduled asynchronous work is not guaranteed.
4141

42-
While [actors](https://docs.swift.org/swift-book/LanguageGuide/Concurrency.html#ID645) are great at serializing tasks, there is no simple way in the standard Swift library prior to Swift 6 to send ordered tasks to them from a synchronous context.
42+
While [actors](https://docs.swift.org/swift-book/LanguageGuide/Concurrency.html#ID645) are great at serializing tasks, there is no simple way in the standard Swift library to send ordered tasks to them from a nonisolated synchronous context, or from multiple execution contexts.
4343

4444
### Executing asynchronous tasks in FIFO order
4545

0 commit comments

Comments
 (0)