Marc Knaup
12/23/2020, 3:17 PMclose()
an HttpClient
?
Why isn’t it designed so that the HttpClient
is bound to a CoroutineScope
and automatically closes when the scope is canceled/completed?
Isn’t this breaking structured concurrency (or at least requires workarounds)?Jorge R
12/23/2020, 6:28 PMMarc Knaup
12/23/2020, 8:05 PMcoroutineScope {
HttpClient().request(…)
}
The HttpClient
should either be closed with the scope, or the HttpClient
be closed automatically when the scope is manually canceled.Alexander Weickmann
01/10/2021, 11:53 AMMarc Knaup
01/10/2021, 7:45 PM