This package can manage the execution of several tasks using Fibers.
It provides a task class that can take a PHP Fiber object that can run a parallel task to manage the state of the task run using the Fiber object.
The package also provides a Concurrent class that can start parallel tasks using callback functions that can execute the code of the task when the functions are called.
It can also perform several operations to manage the execution of a task like:
- Yield a task
- Make a task sleep for a period
- Wait for a task to finish and return the task execution result
- Get a list of all tasks being managed
- Wait for the next task to finish
- Wait for all tasks to finish until a period
- Cancel the execution of a task
- Run all managed tasks |