@@ -19,7 +19,7 @@ import kotlin.coroutines.intrinsics.*
19
19
* An instance of `CancellableContinuation` can only be obtained by the [suspendCancellableCoroutine] function.
20
20
* The interface itself is public for use and private for implementation.
21
21
*
22
- * A typical usages of this function is to suspend a coroutine while waiting for a result
22
+ * A typical usage of this function is to suspend a coroutine while waiting for a result
23
23
* from a callback or an external source of values that optionally supports cancellation:
24
24
*
25
25
* ```
@@ -45,7 +45,7 @@ import kotlin.coroutines.intrinsics.*
45
45
* [CancellableContinuation] allows concurrent invocations of the [cancel] and [resume] pair, guaranteeing
46
46
* that only one of these operations will succeed.
47
47
* Concurrent invocations of [resume] methods lead to a [IllegalStateException] and are considered a programmatic error.
48
- * Concurrent invocations of [cancel] methods is permitted, and at most one of them succeeds.
48
+ * Concurrent invocations of [cancel] methods are permitted, and at most one of them succeeds.
49
49
*
50
50
* ### Prompt cancellation guarantee
51
51
*
@@ -84,11 +84,11 @@ import kotlin.coroutines.intrinsics.*
84
84
*
85
85
* A cancellable continuation has three observable states:
86
86
*
87
- * | **State** | [isActive] | [isCompleted] | [isCancelled] |
88
- * | ----------------------------------- | ---------- | ------------- | ------------- |
89
- * | _Active_ (initial state) | `true` | `false` | `false` |
90
- * | _Resumed_ (final _completed_ state) | `false` | `true` | `false` |
91
- * | _Canceled_ (final _completed_ state)| `false` | `true` | `true` |
87
+ * | **State** | [isActive] | [isCompleted] | [isCancelled] |
88
+ * | ------------------------------------ | ---------- | ------------- | ------------- |
89
+ * | _Active_ (initial state) | `true` | `false` | `false` |
90
+ * | _Resumed_ (final _completed_ state) | `false` | `true` | `false` |
91
+ * | _Cancelled_ (final _completed_ state)| `false` | `true` | `true` |
92
92
*
93
93
* For a detailed description of each state, see the corresponding properties' documentation.
94
94
*
@@ -188,7 +188,7 @@ public interface CancellableContinuation<in T> : Continuation<T> {
188
188
* Internal function that setups cancellation behavior in [suspendCancellableCoroutine].
189
189
* It's illegal to call this function in any non-`kotlinx.coroutines` code and
190
190
* such calls lead to undefined behaviour.
191
- * Exposed in our ABI since 1.0.0 withing `suspendCancellableCoroutine` body.
191
+ * Exposed in our ABI since 1.0.0 within `suspendCancellableCoroutine` body.
192
192
*
193
193
* @suppress **This is unstable API and it is subject to change.**
194
194
*/
0 commit comments