will the return value from `scope.actor<>{}`...
# coroutines
g
will the return value from
scope.actor<>{}
always implement
Job
? I want to implement some code that calls
actor.close()
, and then just to keep things synchronous I want to call
(actor as Job).join()
, will that work in future kotlinx-coroutines?
o
I would not use any guarantee that the API doesn't give you, in particular I would use their recommended pattern for getting a Job https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.channels/actor.html#stopping-and-cancelling-actors