Task Tree and Task Cancellation in Swift Concurrency: Key Concepts Explained
Task Tree
Let’s take a look at the code below
As you can see, the function printStudentInfo() has 2 child Tasks defined using async let. Inside the child Task getClassesAndScores(), it also has 2 child Tasks getClasses() and getScores() . So we have...
huypham85.hashnode.dev2 min read