Hi,
I am new to dispatch library. I have some problem shutting down my application if I am using a customized client. I started with
After I finished my request, I did
And everything went smoothly. But if I started with:
val http = Http.configure(_.setFollowRedirect(true))
The app will not exit even after I have called http.shutdown(). Accidentally, I found if I also call
Http.shutdown() , the app would exit.
So I think when I do Http.configure(...), a second client were created. Is it a by design behavior? How could I know how many clients were created in the system, and make sure all of them are closed properly when I want my app to exit?
Thanks,
David