You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,11 +44,16 @@ let val: String? = await withIdentifiableContinuation { continuation in
44
44
45
45
> Note: The `onCancel:` handler is guaranteed to be called after the continuation body even if the task is already cancelled. Manually check `Task.isCancelled` before creating the continuation to prevent performing unrequired work.
46
46
47
-
## UnsafeContinuation
47
+
## Checked/UnsafeContinuation
48
48
49
-
`withIdentifiableContinuation` internally uses a `CheckedContinunation`.
49
+
`IdentifiableContinuation` internally stores either a `CheckedContinuation` or `UnsafeContinuation`.
50
50
51
-
To use `UnsafeContinuation` use the unsafe functions:
51
+
`CheckedContinuation` is used by the default methods:
0 commit comments