Hi! Just found out about the use-extension (have no idea how I’ve missed that before) and I was wondering if there’s any reason why this is not used by default in the ktor-client? I.e. wouldn’t an auto close feature make a nicer api?
The reason why I am asking is that we had a memory leak which was a result of us not closing the response and I was thinking that this might be the case for others as well
g
gildor
01/18/2019, 12:59 AM
But ktor based on coroutines and coroutines provide cancellation out of the box and it much more powerful than closable.
Could you show code that caused leak
g
gotoOla
01/18/2019, 9:44 AM
@gildor sure thing, I should be able to find the thread were I got help