@@ -123,8 +123,8 @@ public interface Job : CoroutineContext.Element {
123
123
*
124
124
* This function returns the original [cancel] cause of this job if that `cause` was an instance of
125
125
* [CancellationException]. Otherwise (if this job was cancelled with a cause of a different type, or
126
- * was cancelled without a cause, or had completed normally), an instance of [JobCancellationException ] is
127
- * returned. The [JobCancellationException .cause] of the resulting [JobCancellationException ] references
126
+ * was cancelled without a cause, or had completed normally), an instance of [CancellationException ] is
127
+ * returned. The [CancellationException .cause] of the resulting [CancellationException ] references
128
128
* the original cancellation cause that was passed to [cancel] function.
129
129
*
130
130
* This function throws [IllegalStateException] when invoked on a job that has not
@@ -333,8 +333,8 @@ public interface Job : CoroutineContext.Element {
333
333
* @param onCancelling when `true`, then the [handler] is invoked as soon as this job transitions to _cancelling_ state;
334
334
* when `false` then the [handler] is invoked only when it transitions to _completed_ state.
335
335
* @param invokeImmediately when `true` and this job is already in the desired state (depending on [onCancelling]),
336
- * then the [handler] is immediately and synchronously invoked and [NonDisposableHandle ] is returned;
337
- * when `false` then [NonDisposableHandle ] is returned, but the [handler] is not invoked.
336
+ * then the [handler] is immediately and synchronously invoked and no-op [DisposableHandle ] is returned;
337
+ * when `false` then no-op [DisposableHandle ] is returned, but the [handler] is not invoked.
338
338
* @param handler the handler.
339
339
*
340
340
* @suppress **This an internal API and should not be used from general code.**
@@ -531,7 +531,7 @@ public suspend fun Job.join() = this.join()
531
531
* No-op implementation of [DisposableHandle].
532
532
* @suppress **This an internal API and should not be used from general code.**
533
533
*/
534
- @InternalCoroutinesApi // todo: review references from KDocs
534
+ @InternalCoroutinesApi
535
535
public object NonDisposableHandle : DisposableHandle {
536
536
/* * Does not do anything. */
537
537
override fun dispose () {}
0 commit comments