Skip to content

Commit c0fe097

Browse files
authored
Update TimeoutController.swift
1 parent 48465cf commit c0fe097

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/TimeoutController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ func withNonEscapingTimeout<T>(
158158
isolation: isolated (any Actor)? = #isolation,
159159
body: (TimeoutController) async throws -> sending T
160160
) async throws -> sending T {
161-
// canary ensuring Timeout does not escape at runtime.
162-
// Swift 6.2 and later enforce at compile time with ~Escapable
161+
// canary ensuring TimeoutController does not escape at runtime.
162+
// Swift 6.2 and later can enforce at compile time with ~Escapable
163163
try await withoutActuallyEscaping({ @Sendable in }) { escaping in
164164
_ = isolation
165165
let timeout = TimeoutController(canary: escaping, pending: timeout)

0 commit comments

Comments
 (0)