Skip to content

Commit 9c080af

Browse files
committed
Improve FIFOQueue documentation
1 parent 478da38 commit 9c080af

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/AsyncQueue/FIFOQueue.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public final class FIFOQueue: Sendable {
5858

5959
extension Task {
6060
/// Runs the given nonthrowing operation asynchronously
61-
/// as part of a new top-level task on behalf of the current actor.
61+
/// as part of a new top-level task that inherits the current isolated context.
6262
/// The operation will not execute until all prior tasks – including
6363
/// suspended tasks – have completed.
6464
///
@@ -108,7 +108,7 @@ extension Task {
108108
}
109109

110110
/// Runs the given throwing operation asynchronously
111-
/// as part of a new top-level task on behalf of the current actor.
111+
/// as part of a new top-level task that inherits the current isolated context.
112112
/// The operation will not execute until all prior tasks – including
113113
/// suspended tasks – have completed.
114114
///
@@ -162,7 +162,7 @@ extension Task {
162162
}
163163

164164
/// Runs the given nonthrowing operation asynchronously
165-
/// as part of a new top-level task on behalf of the current actor.
165+
/// as part of a new top-level task isolated to the given actor.
166166
/// The operation will not execute until all prior tasks – including
167167
/// suspended tasks – have completed.
168168
///
@@ -214,7 +214,7 @@ extension Task {
214214
}
215215

216216
/// Runs the given throwing operation asynchronously
217-
/// as part of a new top-level task on behalf of the current actor.
217+
/// as part of a new top-level task isolated to the given actor.
218218
/// The operation will not execute until all prior tasks – including
219219
/// suspended tasks – have completed.
220220
///

0 commit comments

Comments
 (0)