Skip to content

Commit

Permalink
fix!
Browse files Browse the repository at this point in the history
  • Loading branch information
VennDev authored Aug 29, 2024
1 parent 09a7149 commit 3abf0b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/vennv/vapm/CoroutineGen.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,7 @@ private static function schedule(ChildCoroutine $childCoroutine): void
public static function run(): void
{
if (!self::$taskQueue?->isEmpty()) {
/** @phpstan-ignore-next-line */
$coroutine = self::$taskQueue->dequeue();
$coroutine = self::$taskQueue?->dequeue();
if ($coroutine instanceof ChildCoroutine && !$coroutine->isFinished()) {
self::schedule($coroutine->run());
}
Expand Down

0 comments on commit 3abf0b3

Please sign in to comment.