-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added contracts to throwIf and throwUnless
- Loading branch information
Joseph Cooper
committed
Oct 26, 2021
1 parent
b07a57d
commit 3810567
Showing
3 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
...ines/src/commonMain/kotlin/com/github/michaelbull/result/coroutines/RunSuspendCatching.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package com.github.michaelbull.result.coroutines | ||
|
||
class RunSuspendCatching { | ||
} |
11 changes: 11 additions & 0 deletions
11
...nes/src/jvmTest/kotlin/com/github/michaelbull/result/coroutines/RunSuspendCatchingTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.github.michaelbull.result.coroutines | ||
|
||
import kotlin.test.Test | ||
|
||
class RunSuspendCatchingTest { | ||
|
||
@Test | ||
fun propogatesCoroutineCancellation() { | ||
val testDispatcher = TestCoroutineDispatcher() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters