https://kotlinlang.org logo
#coroutines
Title
# coroutines
c

CLOVIS

07/28/2019, 5:37 PM
If I cancel a coroutine, it dies and frees all its memory, right? So a valid "clear the cache" mechanism would be to have a coroutine that handles the cache, and when we want to clear it, to kill the scope in which that coroutine runs, and to start another one?
d

Dominaezzz

07/28/2019, 6:05 PM
Yeah, pretty much.
d

Dico

07/28/2019, 6:47 PM
Assuming it and it alone has a reference to its cache, yes
6 Views