Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Test
- fun checkExceptions() = runBlocking {
- try
- {
- val some = async { throw RuntimeException("test exception") }
- val result = some.await()
- }
- catch (e: RuntimeException)
- {
- //do nothing
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment