Guest User

Untitled

a guest
Nov 6th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. @Test
  2. fun checkExceptions() = runBlocking {
  3. try
  4. {
  5. val some = async { throw RuntimeException("test exception") }
  6. val result = some.await()
  7. }
  8. catch (e: RuntimeException)
  9. {
  10. //do nothing
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment