is there a built in construct for a suspending `la...
# coroutines
z
is there a built in construct for a suspending
lazy
?
g
No
But you can create lazy deferred
z
oh interesting
I’m currently using an
actor
with
CoroutineStart.LAZY
for this
but a lazy deferred sounds better
scope.async(start = LAZY)
achieves this use case perfectly
g
Yes, like that 👍
But if one day we will have suspend properties it would be possible to implement something like suspend lazy
But still Deffered will be more flexible and powerful