swoole-bundle
swoole-bundle copied to clipboard
Task workers
There is one very good functionality that I think will be very useful creation of task workers as it is implemented in Octane,
`use App\Models\User; use App\Models\Server; use Laravel\Octane\Facades\Octane;
[$users, $servers] = Octane::concurrently([ fn () => User::all(), fn () => Server::all(), ]);`
hey @BUGOVER !👋 Can you elaborate what the code does?
https://laravel.com/docs/12.x/octane#concurrent-tasks