amphp / file

An abstraction layer and non-blocking file access solution that keeps your application responsive.
MIT License
98 stars 25 forks source link

Do not reuse global worker pool for files #84

Open trowski opened 5 months ago

trowski commented 5 months ago

This modifies the parallel driver to create its own internal pool by default, rather than reuse the global worker pool. A specific pool can still be passed to the constructor (though I assume this use is rather rare).

The AMP_WORKER constant is no longer used to prevent the blocking driver from being used. This way, a Task may still use async file access and get the behavior expected.

/cc @azjezz