@@ -252,9 +252,9 @@ public interface Job : CoroutineContext.Element {
252
252
* suspending function is invoked or while it is suspended, this function
253
253
* throws [CancellationException].
254
254
*
255
- * In particular, it means that a parent coroutine invoking `join` on a child coroutine that was started using
256
- * `launch(coroutineContext) { ... }` builder throws [CancellationException] if the child
257
- * had crashed, unless a non-standard [CoroutineExceptionHandler] is installed in the context .
255
+ * In particular, it means that a parent coroutine invoking `join` on a child coroutine throws
256
+ * [CancellationException] if the child had failed, since a failure of a child coroutine cancels parent by default,
257
+ * unless the child was launched from within [supervisorScope] .
258
258
*
259
259
* This function can be used in [select] invocation with [onJoin] clause.
260
260
* Use [isCompleted] to check for a completion of this job without waiting.
@@ -498,9 +498,9 @@ internal fun Job.disposeOnCompletion(handle: DisposableHandle): DisposableHandle
498
498
* suspending function is invoked or while it is suspended, this function
499
499
* throws [CancellationException].
500
500
*
501
- * In particular, it means that a parent coroutine invoking `cancelAndJoin` on a child coroutine that was started using
502
- * `launch(coroutineContext) { ... }` builder throws [CancellationException] if the child
503
- * had crashed, unless a non-standard [CoroutineExceptionHandler] is installed in the context .
501
+ * In particular, it means that a parent coroutine invoking `cancelAndJoin` on a child coroutine throws
502
+ * [CancellationException] if the child had failed, since a failure of a child coroutine cancels parent by default,
503
+ * unless the child was launched from within [supervisorScope] .
504
504
*
505
505
* This is a shortcut for the invocation of [cancel][Job.cancel] followed by [join][Job.join].
506
506
*/
0 commit comments