CommonPool

CommonPool is a thread pool that is automatically created by the framework for CPU-bound operations. Its maximum size is the amount of cores of the machine minus one. Currently, it's used as the default dispatcher, but if you want to make its usage explicit, you can use it like any other dispatcher:

launch(CommonPool) {
// TODO: Implement CPU-bound algorithm here
}
It's unclear whether CommonPool will stop being the default dispatcher. Consider using it explicitly for your CPU-bound operations to prevent unexpected changes.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.135.213.212