• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package kotlinx.coroutines.test
2 
testResultChainnull3 actual fun testResultChain(block: () -> TestResult, after: (Result<Unit>) -> TestResult): TestResult =
4     block().then(
5         {
6             after(Result.success(Unit))
7             null
8         }, {
9             after(Result.failure(it.toThrowableOrNull() ?: Throwable("Unexpected non-Kotlin exception $it")))
10             null
11         })
12