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

louiscad

11/22/2018, 3:26 PM
Hi, am I right that any failing
async
(and
launch
) block in an
actor
will close the
actor
and make it stop accepting anything?
o

oshai

11/22/2018, 3:30 PM
I think no if you use supervisor job as context
l

louiscad

11/22/2018, 5:05 PM
I finally found a better way, but thanks for the help nonetheless!
o

oshai

11/22/2018, 5:12 PM
I am nut sure but I think you have to wrap await as well?
I think there's not enough docs on that
l

louiscad

11/22/2018, 8:12 PM
await()
is called from inside the
coroutineScope { … }
lambda as well, yes. I'll see if I can submit an improvement to the docs regarding this when I am inspired.
2 Views