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 779a36b commit 290f9a5Copy full SHA for 290f9a5
test/decl/var/async_let.swift
@@ -25,3 +25,13 @@ func testAsyncFunc() async {
25
await x = 1
26
_ = y2
27
}
28
+
29
+// Cooking example
30
+func chopVegetables() async throws -> [String] { [] }
31
+func marinateMeat() async -> String { "MEAT" }
32
33
+func cook() async throws {
34
+ async let veggies = await try chopVegetables(), meat = await marinateMeat()
35
+ _ = await try veggies
36
+ _ = await meat
37
+}
0 commit comments