We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48465cf commit c0fe097Copy full SHA for c0fe097
Sources/TimeoutController.swift
@@ -158,8 +158,8 @@ func withNonEscapingTimeout<T>(
158
isolation: isolated (any Actor)? = #isolation,
159
body: (TimeoutController) async throws -> sending T
160
) 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
+ // canary ensuring TimeoutController does not escape at runtime.
+ // Swift 6.2 and later can enforce at compile time with ~Escapable
163
try await withoutActuallyEscaping({ @Sendable in }) { escaping in
164
_ = isolation
165
let timeout = TimeoutController(canary: escaping, pending: timeout)
0 commit comments