Debian Codegraph @

lib/3rdParty/composer/illuminate/contracts/Concurrency/Driver.php

raw symbols SCIP
1 <?php
2
3 namespace Illuminate\Contracts\Concurrency;
4
5 use Closure;
6 use Illuminate\Support\Defer\DeferredCallback;
7
8 interface Driver
9 {
10 /**
11 * Run the given tasks concurrently and return an array containing the results.
12 */
13 public function run(Closure|array $tasks): array;
14
15 /**
16 * Defer the execution of the given tasks.
17 */
18 public function defer(Closure|array $tasks): DeferredCallback;
19 }