dekans
09/12/2018, 2:24 PMJob that I used as a parent for coroutines in this class. At some point I did a job.join() to make sure all operations were over.
Now, I made this class implement CoroutineScope, I run some operations in launch(Dispatchers.Main+job)
But job.join() is not effective anymore, and I cannot use coroutineContext[Job] for it.
How should I do to have a 'global' Job which I could use?elizarov
09/12/2018, 2:26 PMCoroutineScope implementation should return Dispatcher.Main+job as its coroutineContext and then you can simply launch { ... } in this class. job.join() should work as before. Share a piece of your code in a gist if it does not.dekans
09/12/2018, 2:42 PM<http://Dispatchers.IO|Dispatchers.IO>+job
And job.join() still doesn't resume 😞
Also, the launch(Dispatchers.Main+job) is in a child class. Could it be the cause? `coroutinecontext should still be the sameelizarov
09/12/2018, 2:48 PMdekans
09/12/2018, 2:49 PMdekans
09/12/2018, 3:58 PMjob.joinChildren() seems to do what I want.
Am I correct?