Skip to content

Commit 51df26c

Browse files
authored
新增支持泛型注释,增强IDE提示能力 (#166)
1 parent 7b7dc21 commit 51df26c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/WorkerLimiter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public static function callBlock(callable $callable, string $name, int $max, ?fl
6767
}
6868
$isBlockingRetry = false;
6969
$beginBlockingRetryTime = 0;
70-
do
70+
while (true)
7171
{
7272
// 加锁
7373
$workerId = WorkerLimiterLock::lock($name, $max, $timeout, $poolName);
@@ -104,7 +104,7 @@ public static function callBlock(callable $callable, string $name, int $max, ?fl
104104
WorkerLimiterLock::unlock($name, $workerId, $poolName);
105105

106106
return $result;
107-
} while (true);
107+
}
108108
}
109109

110110
/**

0 commit comments

Comments
 (0)