Edit File: DispatchesTasks.php
<?php namespace Laravel\Octane\Contracts; interface DispatchesTasks { /** * Concurrently resolve the given callbacks via background tasks, returning the results. * * Results will be keyed by their given keys - if a task did not finish, the tasks value will be "false". * * @param array $tasks * @param int $waitMilliseconds * @return array * * @throws \Laravel\Octane\Exceptions\TaskException * @throws \Laravel\Octane\Exceptions\TaskTimeoutException */ public function resolve(array $tasks, int $waitMilliseconds = 3000): array; /** * Concurrently dispatch the given callbacks via background tasks. * * @param array $tasks * @return void */ public function dispatch(array $tasks): void; }
Back to File Manager