@@ -123,8 +123,8 @@ public interface Job : CoroutineContext.Element {
123123 *
124124 * This function returns the original [cancel] cause of this job if that `cause` was an instance of
125125 * [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
128128 * the original cancellation cause that was passed to [cancel] function.
129129 *
130130 * This function throws [IllegalStateException] when invoked on a job that has not
@@ -333,8 +333,8 @@ public interface Job : CoroutineContext.Element {
333333 * @param onCancelling when `true`, then the [handler] is invoked as soon as this job transitions to _cancelling_ state;
334334 * when `false` then the [handler] is invoked only when it transitions to _completed_ state.
335335 * @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.
338338 * @param handler the handler.
339339 *
340340 * @suppress **This an internal API and should not be used from general code.**
@@ -531,7 +531,7 @@ public suspend fun Job.join() = this.join()
531531 * No-op implementation of [DisposableHandle].
532532 * @suppress **This an internal API and should not be used from general code.**
533533 */
534- @InternalCoroutinesApi // todo: review references from KDocs
534+ @InternalCoroutinesApi
535535public object NonDisposableHandle : DisposableHandle {
536536 /* * Does not do anything. */
537537 override fun dispose () {}
0 commit comments