Skip to content

Commit bd025ed

Browse files
committed
Some minor comment cleanup
1 parent a69f736 commit bd025ed

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

core/kotlinx-coroutines-test/src/TestCoroutineExceptionHandler.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package kotlinx.coroutines.test
22

33
import kotlinx.coroutines.CoroutineExceptionHandler
44
import kotlinx.coroutines.ExperimentalCoroutinesApi
5+
import java.util.Collections.synchronizedList
56
import kotlin.coroutines.CoroutineContext
67

78
/**
@@ -12,8 +13,7 @@ interface UncaughtExceptionCaptor {
1213
/**
1314
* List of uncaught coroutine exceptions.
1415
*
15-
* The returned list will be a copy of the currently caught exceptions. All other exceptions will
16-
* be printed using [Throwable.printStackTrace]
16+
* The returned list will be a copy of the currently caught exceptions.
1717
*
1818
* During [cleanupTestCoroutines] the first element of this list will be rethrown if it is not empty.
1919
*/
@@ -22,6 +22,9 @@ interface UncaughtExceptionCaptor {
2222
/**
2323
* Call after the test completes.
2424
*
25+
* The first exception in uncaughtExceptions will be rethrown. All other exceptions will
26+
* be printed using [Throwable.printStackTrace].
27+
*
2528
* @throws Throwable the first uncaught exception, if there are any uncaught exceptions
2629
*/
2730
fun cleanupTestCoroutines()

0 commit comments

Comments
 (0)