swoole-bundle icon indicating copy to clipboard operation
swoole-bundle copied to clipboard

Task workers

Open BUGOVER opened this issue 5 months ago • 2 comments

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(), ]);`

BUGOVER avatar Jul 07 '25 10:07 BUGOVER

hey @BUGOVER !👋 Can you elaborate what the code does?

Rastusik avatar Aug 14 '25 23:08 Rastusik

https://laravel.com/docs/12.x/octane#concurrent-tasks

BUGOVER avatar Oct 04 '25 13:10 BUGOVER