<Memory leak when using coroutine context> When yo...
# forum
r
Memory leak when using coroutine context When you run following cli app with a 1 gb heap it crashes with an out of memory exception when you passs it true and succeeds otherwise Depending on the argument either runGaqlRequest or runGaqlRequest2 is used. The only difference between these methods is that in runGaqlRequest a coroutineContext is used. This seems to prevent the return value from being garbage collected after there are no more references to in in the run method() Why does this happen and how can you avoid this ? For...