File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
core/kotlinx-coroutines-test/src Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package kotlinx.coroutines.test
2
2
3
3
import kotlinx.coroutines.CoroutineExceptionHandler
4
4
import kotlinx.coroutines.ExperimentalCoroutinesApi
5
+ import java.util.Collections.synchronizedList
5
6
import kotlin.coroutines.CoroutineContext
6
7
7
8
/* *
@@ -12,8 +13,7 @@ interface UncaughtExceptionCaptor {
12
13
/* *
13
14
* List of uncaught coroutine exceptions.
14
15
*
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.
17
17
*
18
18
* During [cleanupTestCoroutines] the first element of this list will be rethrown if it is not empty.
19
19
*/
@@ -22,6 +22,9 @@ interface UncaughtExceptionCaptor {
22
22
/* *
23
23
* Call after the test completes.
24
24
*
25
+ * The first exception in uncaughtExceptions will be rethrown. All other exceptions will
26
+ * be printed using [Throwable.printStackTrace].
27
+ *
25
28
* @throws Throwable the first uncaught exception, if there are any uncaught exceptions
26
29
*/
27
30
fun cleanupTestCoroutines ()
You can’t perform that action at this time.
0 commit comments