class ForkDriver implements Driver (View source)

Methods

array
run(Closure|array $tasks, CarbonInterval|int|null $timeout = null)

Run the given tasks concurrently and return an array containing the results.

defer(Closure|array $tasks)

Start the given tasks in the background after the current task has finished.

Details

array run(Closure|array $tasks, CarbonInterval|int|null $timeout = null)

Run the given tasks concurrently and return an array containing the results.

Parameters

Closure|array $tasks
CarbonInterval|int|null $timeout

Return Value

array

DeferredCallback defer(Closure|array $tasks)

Start the given tasks in the background after the current task has finished.

Parameters

Closure|array $tasks

Return Value

DeferredCallback

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.