Closed s-fog closed 4 years ago
Any code used within the Closure must be autoloadable by the composer autoloader or preloaded using a bootstrap file. You can specify a bootstrap file using BootstrapWorkerFactory
and setting the global worker factory.
Amp\Parallel\Worker\factory(
new Amp\Parallel\Worker\BootstrapWorkerFactory('/path/to/bootstrap.php')
);
There hasn't been any further activity, so I'm closing this issue. Please comment with further information, we can always reopen the issue.
Hi guys. Please help me. Use example of ur script.
Promise\wait(parallelMap([0, 1, 2], function ($part)) { new \common\models\Sha256Block; }));
And i catch this problem. Read all what i can. I cant connect Class into this function. Who knows issue?