Home
last modified time | relevance | path

Searched refs:CoroutineExceptionHandler (Results 1 – 25 of 49) sorted by relevance

12

/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/
DCoroutineExceptionHandler.kt24 context[CoroutineExceptionHandler]?.let { in handleCoroutineExceptionImpl()
48 public inline fun CoroutineExceptionHandler(crossinline handler: (CoroutineContext, Throwable) -> U… in CoroutineExceptionHandler() method
49 object : AbstractCoroutineContextElement(CoroutineExceptionHandler), CoroutineExceptionHandler { in CoroutineExceptionHandler()
98 public interface CoroutineExceptionHandler : CoroutineContext.Element { interface
102 public companion object Key : CoroutineContext.Key<CoroutineExceptionHandler>
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/
DCoroutineExceptionHandlerImpl.kt20 private val handlers: List<CoroutineExceptionHandler> = ServiceLoader.load(
21 CoroutineExceptionHandler::class.java,
22 CoroutineExceptionHandler::class.java.classLoader
/external/kotlinx.coroutines/kotlinx-coroutines-test/test/
DTestRunBlockingTest.kt293 runBlockingTest(CoroutineExceptionHandler { _, _ -> Unit} ) { in <lambda>()
379 assertNotNull(coroutineContext[CoroutineExceptionHandler]) in <lambda>()
380 assertNotSame(coroutineContext[CoroutineExceptionHandler], exceptionHandler) in <lambda>()
390 assertSame(coroutineContext[CoroutineExceptionHandler], exceptionHandler) in <lambda>()
394 … fun testOverrideExceptionHandlerError() = runBlockingTest(CoroutineExceptionHandler { _, _ -> }) { in <lambda>()
DTestCoroutineScopeTest.kt14 val handler = CoroutineExceptionHandler { _, _ -> Unit } in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-test/src/
DTestCoroutineExceptionHandler.kt39 …AbstractCoroutineContextElement(CoroutineExceptionHandler), UncaughtExceptionCaptor, CoroutineExce… in cleanupTestCoroutines()
DTestCoroutineScope.kt52 if (context[CoroutineExceptionHandler] == null) safeContext += TestCoroutineExceptionHandler() in TestCoroutineScope()
58 val handler = this[CoroutineExceptionHandler]
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/
DCoroutineExceptionHandlerTest.kt15 val handler = CoroutineExceptionHandler { _, ex -> in <lambda>()
34 val handler = CoroutineExceptionHandler { _, _ -> in <lambda>()
/external/kotlinx.coroutines/ui/kotlinx-coroutines-android/src/
DAndroidExceptionPreHandler.kt15 AbstractCoroutineContextElement(CoroutineExceptionHandler), CoroutineExceptionHandler
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/flow/
DCombineStressTest.kt14 withContext(Dispatchers.Default + CoroutineExceptionHandler { _, _ -> expectUnreached() }) { in <lambda>()
32 withContext(Dispatchers.Default + CoroutineExceptionHandler { _, _ -> expectUnreached() }) { in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/exceptions/
DExceptions.kt37 class CapturingHandler : AbstractCoroutineContextElement(CoroutineExceptionHandler),
38 CoroutineExceptionHandler
DCoroutineExceptionHandlerJvmTest.kt30 val job = GlobalScope.launch(CoroutineExceptionHandler { _, _ -> throw AssertionError() }) { in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/native/test/
DTestBase.kt77 runBlocking(block = block, context = CoroutineExceptionHandler { context, e -> in <lambda>()
78 if (e is CancellationException) return@CoroutineExceptionHandler // are ignored in <lambda>()
DDelayExceptionTest.kt21 CoroutineScope(Dispatcher + CoroutineExceptionHandler { _, e -> exception = e }).launch { in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/test_/
DTestCoroutineContext.kt41 private val ctxHandler = CoroutineExceptionHandler { _, exception -> in <lambda>()
67 key === CoroutineExceptionHandler -> ctxHandler as E in <lambda>()
73 key === CoroutineExceptionHandler -> ctxDispatcher in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/
DThreadContextElementTest.kt15 val exceptionHandler = coroutineContext[CoroutineExceptionHandler]!! in <lambda>()
41 val exceptionHandler = coroutineContext[CoroutineExceptionHandler]!! in testUndispatched()
DTestBase.kt194 runBlocking(block = block, context = CoroutineExceptionHandler { _, e -> in <lambda>()
195 if (e is CancellationException) return@CoroutineExceptionHandler // are ignored in <lambda>()
DJobChildStressTest.kt31 val handler = CoroutineExceptionHandler { _, ex -> in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/js/test/
DTestBase.kt82 … return GlobalScope.promise(block = block, context = CoroutineExceptionHandler { context, e -> in <lambda>()
83 if (e is CancellationException) return@CoroutineExceptionHandler // are ignored in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/guide/
Dexample-supervision-03.kt12 val handler = CoroutineExceptionHandler { _, exception -> in <lambda>()
Dexample-exceptions-02.kt11 val handler = CoroutineExceptionHandler { _, exception -> in <lambda>()
Dexample-exceptions-06.kt12 val handler = CoroutineExceptionHandler { _, exception -> in <lambda>()
Dexample-exceptions-04.kt11 val handler = CoroutineExceptionHandler { _, exception -> in <lambda>()
Dexample-exceptions-05.kt14 val handler = CoroutineExceptionHandler { _, exception -> in <lambda>()
Dexample-supervision-01.kt14 val firstChild = launch(CoroutineExceptionHandler { _, _ -> }) { in <lambda>()
/external/kotlinx.coroutines/ui/kotlinx-coroutines-android/android-unit-tests/test/ordered/tests/
DTestComponent.kt12 …CoroutineScope(SupervisorJob() + Dispatchers.Main + CoroutineExceptionHandler { _, e -> caughtExce… in <lambda>()

12