Jeremy
02/19/2019, 9:26 PMstreetsofboston
02/19/2019, 9:36 PMJeremy
02/19/2019, 9:39 PMstreetsofboston
02/19/2019, 9:47 PMPresenter
uses GlobalScope
to launch
your request.
Instead, you could have your Presenter
implement CoroutineScope
, overriding the coroutineContext
by adding the constructor parameter with a SupervisorJob
that you can cancel when the `Presenter`’s lifecycle ends.Jeremy
02/19/2019, 9:54 PMnestserau
02/20/2019, 8:08 AM