Hey, @Paul Woitaschek. It’s done to allow independently close different instances of
OkHttp
engine. In other way you have to make sure that there are no other requests running by different instances of
OkHttp
in the same dispatcher before close.
e5l
02/24/2021, 10:54 AM
Could you tell me if you have any problems with that?
p
Paul Woitaschek
02/24/2021, 10:56 AM
Im trying to keep exactly one instance of OkHttpClient in my project so I have as less threads running as possible so the connections and threads will be shared as much as possible