Unexpected async let behavior in Swift [duplicate]
This question already has answers here: Async let – fire-and-forget (2 answers) Closed yesterday. In the code below, “ALL tasks completed” is being printed before the 3 tasks are actually complete. How can I make sure to wait until they’re all finished before executing the MainActor code? Task { async let _ = func1() async […]
Unexpected async let behavior in Swift [duplicate]
This question already has answers here: Async let – fire-and-forget (2 answers) Closed yesterday. In the code below, “ALL tasks completed” is being printed before the 3 tasks are actually complete. How can I make sure to wait until they’re all finished before executing the MainActor code? Task { async let _ = func1() async […]
Unexpected async let behavior in Swift [duplicate]
This question already has answers here: Async let – fire-and-forget (2 answers) Closed yesterday. In the code below, “ALL tasks completed” is being printed before the 3 tasks are actually complete. How can I make sure to wait until they’re all finished before executing the MainActor code? Task { async let _ = func1() async […]
Unexpected async let behavior in Swift [duplicate]
This question already has answers here: Async let – fire-and-forget (2 answers) Closed yesterday. In the code below, “ALL tasks completed” is being printed before the 3 tasks are actually complete. How can I make sure to wait until they’re all finished before executing the MainActor code? Task { async let _ = func1() async […]
Unexpected async let behavior in Swift [duplicate]
This question already has answers here: Async let – fire-and-forget (2 answers) Closed yesterday. In the code below, “ALL tasks completed” is being printed before the 3 tasks are actually complete. How can I make sure to wait until they’re all finished before executing the MainActor code? Task { async let _ = func1() async […]
Unexpected async let behavior in Swift [duplicate]
This question already has answers here: Async let – fire-and-forget (2 answers) Closed yesterday. In the code below, “ALL tasks completed” is being printed before the 3 tasks are actually complete. How can I make sure to wait until they’re all finished before executing the MainActor code? Task { async let _ = func1() async […]
Unexpected async let behavior in Swift [duplicate]
This question already has answers here: Async let – fire-and-forget (2 answers) Closed yesterday. In the code below, “ALL tasks completed” is being printed before the 3 tasks are actually complete. How can I make sure to wait until they’re all finished before executing the MainActor code? Task { async let _ = func1() async […]
Unexpected async let behavior in Swift [duplicate]
This question already has answers here: Async let – fire-and-forget (2 answers) Closed yesterday. In the code below, “ALL tasks completed” is being printed before the 3 tasks are actually complete. How can I make sure to wait until they’re all finished before executing the MainActor code? Task { async let _ = func1() async […]
Unexpected async let behavior in Swift [duplicate]
This question already has answers here: Async let – fire-and-forget (2 answers) Closed yesterday. In the code below, “ALL tasks completed” is being printed before the 3 tasks are actually complete. How can I make sure to wait until they’re all finished before executing the MainActor code? Task { async let _ = func1() async […]
Unexpected async let behavior in Swift [duplicate]
This question already has answers here: Async let – fire-and-forget (2 answers) Closed yesterday. In the code below, “ALL tasks completed” is being printed before the 3 tasks are actually complete. How can I make sure to wait until they’re all finished before executing the MainActor code? Task { async let _ = func1() async […]