amphp / ext-uv

Other
191 stars 28 forks source link

Removal of libuv queue work API #83

Open ghost opened 4 years ago

ghost commented 4 years ago

I'd like to suggest that php-uv removes the support for libuv's queue work API. Even though it seems safe to the user from the outside, the API is expensive, limited and dangerous.

I'm sure with one or the other work it will segfault (we can already see that in #46). Instead of having such a potential dangerous API exposed, I'd like to see it instead removed and link to parallel, which is safe, offers a good range of features and is the dedicated PHP extension for parallelism.

What is the opinion of the maintainer on this matter?

ghost commented 4 years ago

@bwoebi thoughts?