File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
kotlinx-coroutines-core/common/src Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ public inline fun CoroutineScope.cancel() {
215
215
* Throws [IllegalStateException] if the context does not have a job in it.
216
216
*
217
217
* If the job is no longer active, throws [CancellationException].
218
- * If the job was cancelled, thrown exception contains original cancellation cause.
218
+ * If the job was cancelled, thrown exception contains the original cancellation cause.
219
219
*
220
220
* This method is a drop-in replacement for the following code, but with more precise exception:
221
221
* ```
Original file line number Diff line number Diff line change @@ -539,7 +539,7 @@ public fun CoroutineContext.cancel(): Unit {
539
539
/* *
540
540
* Ensures that current job is [active][Job.isActive].
541
541
* If the job is no longer active, throws [CancellationException].
542
- * If the job was cancelled, thrown exception contains original cancellation cause.
542
+ * If the job was cancelled, thrown exception contains the original cancellation cause.
543
543
*
544
544
* This method is a drop-in replacement for the following code, but with more precise exception:
545
545
* ```
@@ -557,7 +557,7 @@ public fun Job.ensureActive(): Unit {
557
557
* Throws [IllegalStateException] if the context does not have a job in it.
558
558
*
559
559
* If the job is no longer active, throws [CancellationException].
560
- * If the job was cancelled, thrown exception contains original cancellation cause.
560
+ * If the job was cancelled, thrown exception contains the original cancellation cause.
561
561
*
562
562
* This method is a drop-in replacement for the following code, but with more precise exception:
563
563
* ```
@@ -567,7 +567,7 @@ public fun Job.ensureActive(): Unit {
567
567
* ```
568
568
*/
569
569
public fun CoroutineContext.ensureActive (): Unit {
570
- val job = get(Job ) ? : error(" Context cannot be check for liveness because it does not have a job: $this " )
570
+ val job = get(Job ) ? : error(" Context cannot be checked for liveness because it does not have a job: $this " )
571
571
job.ensureActive()
572
572
}
573
573
You can’t perform that action at this time.
0 commit comments