Calling synchronous function with async let

Tasks created with Task are not child tasks of the current task, and changes to the current task like cancellation and priority escalation are not propagated to them. Task just copies more of the context of the current task than Task.detached does.

The only true child tasks (currently) are the tasks created by async let and TaskGroup.

8 Likes