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

sashjakk

12/19/2018, 1:59 PM
Hey, have a question about `Job#invokeOnCompletion`… Is it true that after calling
cancelAndJoin
completion block is not guaranteed to be executed right after
cancelAndJoin
have completed? Tried to add some logging to see jobs actually finished
v

Vsevolod Tolstopyatov [JB]

12/19/2018, 2:45 PM
there is no such guarantee, yes
join
uses the same
invokeOnCompletion
method under the hood and order of invocation of multiple
invokeOnCompletion
handlers is not defined
s

sashjakk

12/19/2018, 2:50 PM
🙂 good to know, thanks a lot!
2 Views