elizarov
12/30/2016, 12:49 PMsuspending fun doSomething(): Result
, then you are clear and explict about its non-blocking nature and its result type, but you don't commit yourself to any concurrency/asynchronity just yet. Then, at any point where you think you need to run it asynchronously and in parallel with whathever else you are doing you can always do async { doSomething() }
. This way you are 100% explicit about your intent.