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

elizarov

12/05/2017, 6:58 AM
@kevinherron The approach with parent job suggest by @bj0 is indeed intended replacement if you need ability to cancel and join your actors. Alternatively, you should consider closing your actors via
close
that performs a graceful closing (letting actor finish all the processing). However, the
close
does not assume that you will be joining them.
k

kevinherron

12/05/2017, 2:05 PM
Normally
close
would be fine, but in this case I explicitly need to avoid letting them finishing processing their queue.