Join Slack
Powered by
With encapsulation into functions it gets slightly...
# coroutines
e
elizarov
03/04/2017, 8:21 AM
With encapsulation into functions it gets slightly more natural syntax. You are encouraged to explicitly specify return type in this case:
suspend fun doSomeFileOp(): Result = run(context) { ... }
-- it is easier for reader of your code
Open in Slack
Previous
Next