https://kotlinlang.org logo
#coroutines
Title
# coroutines
l

louiscad

03/14/2019, 6:13 PM
async
is only for parallelization. I avoid recommending it unless you need it because I saw a lot of misuse regarding it that broke structured concurrency and throwables handling.
z

zak.taccardi

03/14/2019, 6:14 PM
async can also be used for asynchronous lazy initialization (instead of synchronous
by lazy
) with the
async(start = CoroutinesStart.LAZY)
👍 1
l

louiscad

03/14/2019, 6:43 PM
That's right!
3 Views