1
0
Fork 0
mirror of synced 2024-06-02 19:04:49 +12:00

fix: enable coroutine in functions worker

This commit is contained in:
Torsten Dittmann 2021-04-14 12:40:55 +02:00
parent 9dc206051f
commit e021b8795a

View file

@ -25,6 +25,8 @@ $environments = Config::getParam('environments');
*/
$warmupStart = \microtime(true);
Runtime::setHookFlags(SWOOLE_HOOK_ALL);
Co\run(function() use ($environments) { // Warmup: make sure images are ready to run fast 🚀
Runtime::enableCoroutine(SWOOLE_HOOK_ALL);