Home
last modified time | relevance | path

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

123

/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/
DCoroutineExceptionHandler.kt22 context[CoroutineExceptionHandler]?.let { in handleCoroutineException()
46 public inline fun CoroutineExceptionHandler(crossinline handler: (CoroutineContext, Throwable) -> U… in CoroutineExceptionHandler() method
47 object : AbstractCoroutineContextElement(CoroutineExceptionHandler), CoroutineExceptionHandler { in CoroutineExceptionHandler()
97 public interface CoroutineExceptionHandler : CoroutineContext.Element { interface
101 public companion object Key : CoroutineContext.Key<CoroutineExceptionHandler>
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/internal/
DCoroutineExceptionHandlerImpl.kt17 internal actual val platformExceptionHandlers: Collection<CoroutineExceptionHandler> = ServiceLoade…
18 CoroutineExceptionHandler::class.java,
19 CoroutineExceptionHandler::class.java.classLoader
22 internal actual fun ensurePlatformExceptionHandlerLoaded(callback: CoroutineExceptionHandler) { in ensurePlatformExceptionHandlerLoaded()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jsAndWasmShared/src/internal/
DCoroutineExceptionHandlerImpl.kt6 private val platformExceptionHandlers_ = mutableSetOf<CoroutineExceptionHandler>()
8 internal actual val platformExceptionHandlers: Collection<CoroutineExceptionHandler>
11 internal actual fun ensurePlatformExceptionHandlerLoaded(callback: CoroutineExceptionHandler) { in ensurePlatformExceptionHandlerLoaded()
/external/kotlinx.coroutines/kotlinx-coroutines-core/native/src/internal/
DCoroutineExceptionHandlerImpl.kt9 internal actual val platformExceptionHandlers: Collection<CoroutineExceptionHandler>
12 private val platformExceptionHandlers_ = mutableSetOf<CoroutineExceptionHandler>()
14 internal actual fun ensurePlatformExceptionHandlerLoaded(callback: CoroutineExceptionHandler) { in ensurePlatformExceptionHandlerLoaded()
/external/kotlinx.coroutines/kotlinx-coroutines-test/jvm/src/migration/
DTestCoroutineScope.kt82 …(coroutineContext[CoroutineExceptionHandler] as? TestCoroutineExceptionHandler)?.cleanupTestCorout… in cleanupTestCoroutines()
139 …object : AbstractCoroutineContextElement(CoroutineExceptionHandler), TestCoroutineScopeExceptionHa… in createTestCoroutineScope()
145 …val exceptionHandler = when (val exceptionHandler = ctxWithDispatcher[CoroutineExceptionHandler]) { in createTestCoroutineScope()
164 private interface TestCoroutineScopeExceptionHandler : CoroutineExceptionHandler
DTestCoroutineExceptionHandler.kt8 AbstractCoroutineContextElement(CoroutineExceptionHandler), CoroutineExceptionHandler {
/external/kotlinx.coroutines/kotlinx-coroutines-test/common/src/internal/
DExceptionCollector.kt19 …eptionCollector : AbstractCoroutineContextElement(CoroutineExceptionHandler), CoroutineExceptionHa…
93 internal class ExceptionCollectorAsService: CoroutineExceptionHandler by ExceptionCollector { in equals()
/external/kotlinx.coroutines/test-utils/jvm/src/
DExceptions.kt22 class CapturingHandler : AbstractCoroutineContextElement(CoroutineExceptionHandler),
23 CoroutineExceptionHandler
49 crossinline operation: suspend (CoroutineExceptionHandler) -> Unit): E { in assertCallsExceptionHandlerWith()
DTestBase.kt140 runBlocking(block = block, context = CoroutineExceptionHandler { _, e -> in runTest()
141 if (e is CancellationException) return@CoroutineExceptionHandler // are ignored in runTest()
/external/kotlinx.coroutines/kotlinx-coroutines-test/jvm/test/migration/
DTestRunBlockingTest.kt313 runBlockingTest(CoroutineExceptionHandler { _, _ -> }) { in <lambda>()
369 assertNotNull(coroutineContext[CoroutineExceptionHandler]) in <lambda>()
370 assertNotSame(coroutineContext[CoroutineExceptionHandler], exceptionHandler) in <lambda>()
384 assertSame(coroutineContext[CoroutineExceptionHandler], exceptionHandler) in <lambda>()
390 runBlockingTest(CoroutineExceptionHandler { _, _ -> }) { in <lambda>()
DTestCoroutineScopeTest.kt193 scope1.coroutineContext.minusKey(CoroutineExceptionHandler), in <lambda>()
194 scope2.coroutineContext.minusKey(CoroutineExceptionHandler)) in <lambda>()
212 CoroutineExceptionHandler { _, _ -> }, // not an [UncaughtExceptionCaptor] in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-test/jvm/src/
Dmodule-info.java1 import kotlinx.coroutines.CoroutineExceptionHandler;
14 provides CoroutineExceptionHandler with ExceptionCollectorAsService;
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/internal/
DCoroutineExceptionHandlerImpl.common.kt10 internal expect val platformExceptionHandlers: Collection<CoroutineExceptionHandler>
15 internal expect fun ensurePlatformExceptionHandlerLoaded(callback: CoroutineExceptionHandler) in ensurePlatformExceptionHandlerLoaded()
/external/kotlinx.coroutines/ui/kotlinx-coroutines-android/src/
DAndroidExceptionPreHandler.kt9 AbstractCoroutineContextElement(CoroutineExceptionHandler), CoroutineExceptionHandler
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/
DCoroutineExceptionHandlerTest.kt12 val handler = CoroutineExceptionHandler { _, ex -> in <lambda>()
31 val handler = CoroutineExceptionHandler { _, _ -> in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/concurrent/test/flow/
DCombineStressTest.kt11 withContext(Dispatchers.Default + CoroutineExceptionHandler { _, _ -> expectUnreached() }) { in <lambda>()
29 withContext(Dispatchers.Default + CoroutineExceptionHandler { _, _ -> expectUnreached() }) { in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/
Dmodule-info.java1 import kotlinx.coroutines.CoroutineExceptionHandler;
26 uses CoroutineExceptionHandler;
/external/kotlinx.coroutines/test-utils/native/src/
DTestBase.kt34 runBlocking(block = block, context = CoroutineExceptionHandler { _, e -> in <lambda>()
35 if (e is CancellationException) return@CoroutineExceptionHandler // are ignored in <lambda>()
/external/kotlinx.coroutines/test-utils/wasmWasi/src/
DTestBase.kt39 runTestCoroutine(block = block, context = CoroutineExceptionHandler { _, e -> in runTest()
40 if (e is CancellationException) return@CoroutineExceptionHandler // are ignored in runTest()
/external/kotlinx.coroutines/test-utils/js/src/
DTestBase.kt69 … val result = GlobalScope.promise(block = block, context = CoroutineExceptionHandler { _, e -> in runTest()
70 if (e is CancellationException) return@CoroutineExceptionHandler // are ignored in runTest()
/external/kotlinx.coroutines/test-utils/wasmJs/src/
DTestBase.kt68 … val result = GlobalScope.promise(block = block, context = CoroutineExceptionHandler { _, e -> in runTest()
69 if (e is CancellationException) return@CoroutineExceptionHandler // are ignored in runTest()
/external/kotlinx.coroutines/kotlinx-coroutines-test/common/src/
DTestScope.kt165 val exceptionHandler = when (ctxWithDispatcher[CoroutineExceptionHandler]) { in advanceUntilIdle()
166 null -> CoroutineExceptionHandler { _, exception -> in advanceUntilIdle()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/guide/
Dexample-supervision-03.kt8 val handler = CoroutineExceptionHandler { _, exception -> in <lambda>()
Dexample-exceptions-02.kt8 val handler = CoroutineExceptionHandler { _, exception -> in <lambda>()
/external/kotlinx.coroutines/ui/kotlinx-coroutines-android/android-unit-tests/test/ordered/tests/
DTestComponent.kt8 …CoroutineScope(SupervisorJob() + Dispatchers.Main + CoroutineExceptionHandler { _, e -> caughtExce… in <lambda>()

123