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 69f0d2c commit 002d77aCopy full SHA for 002d77a
test/Concurrency/sending_continuation.swift
@@ -231,3 +231,16 @@ func withUnsafeContinuation_4a() async {
231
}
232
await useValueAsync(x)
233
234
+
235
+public actor WithCheckedThrowingContinuationErrorAvoidance {
236
+ nonisolated func handle(reply: (Int) -> Void) {}
237
238
+ // make sure that we do not emit any errors on the following code.
239
+ func noError() async throws -> Int {
240
+ return try await withCheckedThrowingContinuation { continuation in
241
+ handle { result in
242
+ continuation.resume(returning: result)
243
+ }
244
245
246
+}
0 commit comments