Skip to content

Commit 8c8551e

Browse files
committed
Doc fixed
1 parent e0c817d commit 8c8551e

File tree

1 file changed

+1
-1
lines changed
  • kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental

1 file changed

+1
-1
lines changed

kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/Job.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public fun Job.unregisterOnCompletion(registration: Job.Registration): Job.Regis
178178
*
179179
* This is a shortcut for the following code with slightly more efficient implementation (one fewer object created).
180180
* ```
181-
* onCompletion { future.cancel(true) }
181+
* onCompletion { future.cancel(false) }
182182
* ```
183183
*/
184184
public fun Job.cancelFutureOnCompletion(future: Future<*>): Job.Registration =

0 commit comments

Comments
 (0)