Closed namuller30 closed 5 months ago
GParsPool.withPool
is used for the first example to show GPars using normal threads. The withExistingPool
method is indeed in the GParsExecutorsPool
class. It is assumed that folks would find it without too much trouble but you are right it could be clearer to explicitly mention that.
Clarified. Thanks for the suggestion.
I was trying to implement the code in the gpars-meets-virtual-threads article and noticed it doesn't work.
The problem is you need to use the
GParsExecutorsPool.withExistingPool
instead ofGParsPool.withPool
that is listed