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

vineethraj49

03/12/2020, 11:18 AM
if I don't await on a
GlobalScope.async
does it get GC'ed allow the stuff being referenced in it get GC'ed?
e

elizarov

03/12/2020, 12:18 PM
If it the coroutines completes, then it will be GC’d. You don’t have to wait for it. But if the coroutines is still active and waits for something (like
delay
), then it depends on what it waits for.
8 Views