Last active
October 30, 2019 23:52
-
-
Save pencelab/c77cf2d2374ffbffb483ffbfe6938495 to your computer and use it in GitHub Desktop.
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
runBlocking { | |
val defIsEven = operator.sumIsEvenAsync() | |
launch { | |
try { | |
log("${Operator.OPERATION_IS_EVEN} Result = ${defIsEven.await()}") | |
} catch (e: Exception) { | |
log("${Operator.OPERATION_IS_EVEN} Caught: [ $e ]") | |
} finally { | |
log("--- NOTHING CONTAINING \"${Operator.OPERATION_IS_EVEN}\" SHOULD APPEAR AFTER THIS LINE ---") | |
delay(3000) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment