Skip to content

Commit 92fa9f3

Browse files
phauslerFranzBusch
andauthored
Apply suggestions from code review
Co-authored-by: Franz Busch <privat@franz-busch.de>
1 parent 34a5b1b commit 92fa9f3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

proposals/0526-deadline.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,8 @@ public nonisolated(nonsending) func withTaskCancellationHandler<Return, Failure>
346346
This function works exactly as the existing `withTaskCancellationHandler` does today,
347347
except that the `onCancel` handler is passed the reason for cancellation.
348348

349+
Furthermore, the cancellation reason can be retrieved from the current Task similar to how cancellation is checked.
350+
349351
#### Failures and expiration
350352

351353
The withDeadline throwing behavior is that of the operation's throwing behavior. If the operation throws a

0 commit comments

Comments
 (0)