I'm not sure if its possible to add conformances to existing stdlib types - see: Backwards-deployable Conformances but the usability of withTaskCancellationHandler
could be much nicer if CheckedContinuation
conformed to Identifiable
await withCheckedContinuation {
continuations[$0.id] = $0
} onCancel: { id in
Task { await self.cancelContinuation(with: id) }
}