I am invoking evictAll from connectionPool and cancelAll from dispatchers. but it is not killing the thread ( OkHttp ConnectionPool ).
Here is the Thread stacktrace.
[info]java.lang.Object.wait(Native Method)
[info] java.lang.Object.wait(Object.java:460)
[info] okhttp3.ConnectionPool$1.run(ConnectionPool.java:66)
[info] java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[info] java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[info] java.lang.Thread.run(Thread.java:748)
is there any option to kill these threads ?
okhttp build:- 3.7.0