Skip to content

Commit 362476c

Browse files
committed
#function commentary
1 parent 8ff767a commit 362476c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/IdentifiableContinuation.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
/// You must invoke the continuation's `resume` method exactly once.
3939
/// - Parameters:
4040
/// - isolation: Actor isolation used when executing the body closure.
41+
/// - function: A string identifying the declaration that is the notional
42+
/// source for the continuation, used to identify the continuation in
43+
/// runtime diagnostics related to misuse of this continuation.
4144
/// - body: A closure that takes a `IdentifiableContinuation` parameter.
4245
/// - handler: Cancellation closure executed when the current Task is cancelled. Handler is always called _after_ the body closure is compeled.
4346
/// - Returns: The value continuation is resumed with.
@@ -83,6 +86,9 @@ public func withIdentifiableContinuation<T>(
8386
/// You must invoke the continuation's `resume` method exactly once.
8487
/// - Parameters:
8588
/// - isolation: Actor isolation used when executing the body closure.
89+
/// - function: A string identifying the declaration that is the notional
90+
/// source for the continuation, used to identify the continuation in
91+
/// runtime diagnostics related to misuse of this continuation.
8692
/// - body: A closure that takes a `IdentifiableContinuation` parameter.
8793
/// - handler: Cancellation closure executed when the current Task is cancelled. Handler is always called _after_ the body closure is compeled.
8894
/// - Returns: The value continuation is resumed with.

0 commit comments

Comments
 (0)