map( fn ($task) => $task() )->all(); } /** * Start the given tasks in the background after the current task has finished. */ public function defer(Closure|array $tasks): DeferredCallback { return defer(fn () => Collection::wrap($tasks)->each(fn ($task) => $task())); } }