diff --git a/src/Concerns/ProvidesConcurrencySupport.php b/src/Concerns/ProvidesConcurrencySupport.php index 134f601f6..f910f4df7 100644 --- a/src/Concerns/ProvidesConcurrencySupport.php +++ b/src/Concerns/ProvidesConcurrencySupport.php @@ -23,6 +23,10 @@ trait ProvidesConcurrencySupport */ public function concurrently(array $tasks, int $waitMilliseconds = 3000) { + if (empty($tasks)) { + return []; + } + return $this->tasks()->resolve($tasks, $waitMilliseconds); }