1 | <?php |
||
7 | class Awaiter |
||
8 | { |
||
9 | /** |
||
10 | * @var int |
||
11 | */ |
||
12 | private $resolutionMicroSeconds; |
||
13 | |||
14 | /** |
||
15 | * @param int $resolutionMicroSeconds |
||
16 | */ |
||
17 | 14 | public function __construct(int $resolutionMicroSeconds = 100000) |
|
21 | |||
22 | /** |
||
23 | * @param \tomzx\Job\JobQueue $queue |
||
24 | * @return \tomzx\Job\JobQueue |
||
25 | */ |
||
26 | 2 | public function all(JobQueue $queue): JobQueue |
|
50 | |||
51 | /** |
||
52 | * @param \tomzx\Job\JobQueue $queue |
||
53 | * @return \tomzx\Job\Job |
||
54 | * @throws \InvalidArgumentException |
||
55 | */ |
||
56 | 7 | public function any(JobQueue $queue): Job |
|
72 | |||
73 | /** |
||
74 | * @param \tomzx\Job\JobQueue $queue |
||
75 | * @param int $count |
||
76 | * @return \tomzx\Job\JobQueue |
||
77 | * @throws \InvalidArgumentException |
||
78 | */ |
||
79 | 2 | public function some(JobQueue $queue, int $count): JobQueue |
|
111 | } |
||
112 |