Files
swift-mirror/stdlib/public/Concurrency/TaskCancellation.swift
Mike Ash 1c86195349 [Concurrency] Warn about deadlock potential in withTaskCancellationHandler docs.
withTaskCancellationHandler gets called with the task status record lock held, so care needs to be taken if the cancellation handler acquires any locks of its own. Update the docs comment to describe this.

rdar://111686260
2023-07-21 16:31:18 -04:00

4.9 KiB