Driver.php 419 B

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