elizarov
01/02/2018, 12:10 PMsuspend foo
is for sequential execution of code (do foo
first, then do something else that follows it) like you do in regular code, while fun foo() = launch/async
is for parallel execution of code (do foo
in parallel with whatever follows after it).