// *** in version 6.2: ***
//a task can carry a name; it shows up
//in the debugger and in Instruments
let task = Task(name: "loading") {
//the name is read from inside
Task.name ?? "unnamed"
}
print("name is \(await task.value)")
//name is loading