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