Paul Woitaschek
07/09/2019, 2:49 PMstreetsofboston
07/09/2019, 2:50 PMCoroutineScope.cancel()
does just that…. maybe someone didn’t realize this extension method existed 🙂Paul Woitaschek
07/09/2019, 2:51 PMstreetsofboston
07/09/2019, 2:53 PMcloseWithRuntimeException
explains this..Paul Woitaschek
07/09/2019, 2:54 PMclear
. They have a map where they put all sorts of stuff inside and if it's cancellable they cancel it. That's why they made a custom scope that implements cancellable.streetsofboston
07/09/2019, 2:54 PMthis.cancel()
vs coroutineContext.cancel()
. Your question is about why calling it through a Closable
interface…Paul Woitaschek
07/09/2019, 2:55 PMstreetsofboston
07/09/2019, 2:56 PM