Olekss
04/10/2019, 12:52 PMtseisel
04/10/2019, 3:58 PMWorkNodeBase
can be cancelled by explicitely calling scope.cancel()
. From the documentation of the cancel()
function, it is stated that the scope is required to have a Job
to be cancellable.
So yes, you have to create a Job instance, otherwise you coroutines will outlive the scope just like with GlobalScope
.