-
-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Future plans for this package #4
Comments
Hey @kelunik We're actually going to move away from Note that we don't see this package as an alternative to Amp, but rather a very lightweight way of managing dynamic generated child processes. We have some use cases in which the functionality of this package (once it's done) is sufficient. We're aiming for less overhead (also meaning less functionality), resulting in better performance. The most important differences between this package and amphp/parallel:
I plan on working on this more the next two weeks during the holidays, so we'll have a better idea of what we're going to do with this afterwards. |
Good to know! How well does Do you plan to have your own |
Ah that was one more thing I forgot to mention: we're not concerned with Windows support 😊. I was actually thinking about using using Guzzle promises, and to unwrap them in the So it's clear that it won't be really A+ right now, but in case we will ever expand on this package, I'd like to use promises right away, so we could go an even more asynchronous way if needed. |
Have fun with Guzzle's promises. 😉 Unfortunately, they don't really interop with anything else, even if they claim that. The periodic timer they suggest just hogs the CPU. If you want interop with other promises, don't use Guzzle's. |
Ok thanks for the tip! We're going to get this working first without promises and see from there :) |
I've since blogged about use cases for this package: https://www.stitcher.io/blog/asynchronous-php I'm going to close this issue for now. |
…iginal author's `spatie/async` package. - Some these changes was part of previous PR fork spatie/async#56, others fix or address many issues raised in: spatie/async#168, spatie/async#147, spatie/async#162, spatie/async#164, spatie/async#168, spatie/async#160, spatie/async#153, spatie/async#152, spatie/async#157, spatie/async#134, spatie/async#76, spatie/async#107, spatie/async#98, spatie/async#4.
Hey,
what are the future plans for this package, given you have integrated
amphp/parallel-functions
into https://github.com/spatie/laravel-collection-macros instead of using this package?Generally I'd recommend against using forks, because each forks retains the previous state, e.g. open files etc. While that's currently also true for all child processes opened by PHP, that might change in the future, and they're already better for most uses generic use cases right now, because they don't retain the memory allocated by the currently running process.
The text was updated successfully, but these errors were encountered: