Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions src/Queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,14 @@ public static function any($concurrency, array $jobs, $handler)
* $q = new Queue(10, null, array($browser, 'get'));
* ```
*
* @param int $concurrency concurrency soft limit
* @param int|null $limit queue hard limit or NULL=unlimited
* @param callable(mixed):PromiseInterface<T> $handler
* @template A1 (any number of function arguments, see https://github.com/phpstan/phpstan/issues/8214)
* @template A2
* @template A3
* @template A4
* @template A5
* @param int $concurrency concurrency soft limit
* @param int|null $limit queue hard limit or NULL=unlimited
* @param callable(A1,A2,A3,A4,A5):PromiseInterface<T> $handler
* @throws \InvalidArgumentException
*/
public function __construct($concurrency, $limit, $handler)
Expand Down