[concurrency-interest] Nested ManagedBlockers are benign?
leventov.ru at gmail.com
Mon Jan 20 15:44:11 EST 2020
Does calling FJP.managedBlock() within another FJP.managedBlock() call
usually or always not cause an additional thread to spin up the second
compensation thread needlessly?
I ask because I proposed a widely used HTTP client library to wrap blocking
network calls transparently for users:
https://github.com/square/okhttp/issues/5655, but now I'm not sure it is a
good idea if there are some users who already wrap the calls to the library
themselves with FJP.managedBlock(), who might then be penalized for their
own prudence if nested ManagedBlockers start extra threads.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Concurrency-interest