amphp/parallel-functions
Wrap callables to run in parallel processes/threads with AMPHP. Provides helpers like parallelMap to execute CPU-heavy or blocking tasks concurrently; callable state must be serializable. Built for PHP 8.1+ with fibers-friendly concurrency.
Stable release compatible with AMPHP v3 and fibers! 🎉
As with other libraries compatible with AMPHP v3, most cases of parameters or returns of Promise<ResolutionType> have been replaced with ResolutionType.
laravel/serializable-closure instead of opis/closure by @owenvokeFull Changelog: https://github.com/amphp/parallel-functions/compare/v1.0.0...v1.1.0
amphp/parallel < 1.1parallel function to throw a SerializationException instead of an Error if serialization failsamphp/amp requirement to ensure correct output order.$pool parameter to allow using custom pools instead of the default pool of amphp/parallel.How can I help you explore Laravel packages today?