Skip to content

Commit 0f26697

Browse files
authored
Optimized phpdoc (#6927)
1 parent 9575665 commit 0f26697

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/Functions.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ function parallel(array $callables, int $concurrent = 0): array
3030
return $parallel->wait();
3131
}
3232

33+
/**
34+
* @template TReturn
35+
*
36+
* @param Closure():TReturn $closure
37+
* @return TReturn
38+
*/
3339
function wait(Closure $closure, ?float $timeout = null)
3440
{
3541
if (ApplicationContext::hasContainer()) {

src/Waiter.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ public function __construct(float $timeout = 10.0)
3030
}
3131

3232
/**
33+
* @template TReturn
34+
*
35+
* @param Closure():TReturn $closure
3336
* @param null|float $timeout seconds
37+
* @return TReturn
3438
*/
3539
public function wait(Closure $closure, ?float $timeout = null)
3640
{

0 commit comments

Comments
 (0)