Avatar
@swift-6.1.2 struct MyError: Error {} func kataduke() async throws { print(#function) } func foo() async throws { async let _ = { try await kataduke() }() print("begin foo") throw MyError() print("success foo") } do { try await foo() } catch { print(error) } (edited)