v1.0.0 initial release
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Contracts\Concurrency;
|
||||
|
||||
use Closure;
|
||||
use Illuminate\Support\Defer\DeferredCallback;
|
||||
|
||||
interface Driver
|
||||
{
|
||||
/**
|
||||
* Run the given tasks concurrently and return an array containing the results.
|
||||
*/
|
||||
public function run(Closure|array $tasks): array;
|
||||
|
||||
/**
|
||||
* Defer the execution of the given tasks.
|
||||
*/
|
||||
public function defer(Closure|array $tasks): DeferredCallback;
|
||||
}
|
||||
Reference in New Issue
Block a user