- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for exceptionOrNullFrom (5.12 sec)
-
platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/concurrent/DefaultAsyncIOScopeFactoryTest.kt
} assertThat( exceptionOrNullFrom { scope.close() }, instanceOf(TimeoutException::class.java) ) } } private fun awaitExceptionFrom(scope: IOScope) = await atMost ONE_SECOND untilNotNull { exceptionOrNullFrom { scope.io { } } } private fun exceptionOrNullFrom(action: () -> Unit) = runCatching(action).exceptionOrNull()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 3.7K bytes - Viewed (0)