Avatar
Avatar
Iceman
@swift-5.10.1 Task { print("Task.isCancelled:", Task.isCancelled) await withTaskCancellationHandler { print("work") } onCancel: { print("onCancel") } }.cancel()
swift510 BOT 1/26/2024 2:17 AM
Task.isCancelled: true onCancel work