The built-in worker factory type.
|string||$envClassName||Name of class implementing \Amp\Parallel\Worker\Environment to instigate in each worker. Defaults to \Amp\Parallel\Worker\BasicEnvironment.||BasicEnvironment::class|
Creates a new worker instance.
The type of worker created depends on the extensions available. If multi-threading is enabled, a WorkerThread will be created. If threads are not available a WorkerProcess will be created.