Open
Description
We may want to add a specific adapter taking advantage of libuv's process handling logic:
- http://docs.libuv.org/en/v1.x/process.html
- https://github.com/bwoebi/php-uv#resource-uv_spawnresource-loop-string-command-array-args-array-stdio-string-cwd-array-env--array-callable-callback-long-flags--array-options
To be clear, this project works just fine with all loop implementations, including the default StreamSelectLoop
and ExtUvLoop
. This potential adapter could take advantage of some of the optimizations inside libuv and avoid some of the known limitations of the project.
In particular, this may help with Windows support (#9) in the future because libuv supports pipes with overlapped mode on Windows. Note that a Windows build of ext-uv
does not appear to be available at the time of writing this, but it is believed to change again in the future (amphp/ext-uv#63).