Skip to content

Commit

Permalink
Update CoroutineGen.php
Browse files Browse the repository at this point in the history
  • Loading branch information
VennDev authored Aug 26, 2024
1 parent eb8374f commit 06d4a4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vennv/vapm/CoroutineGen.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public static function runNonBlocking(mixed ...$coroutines): void
{
System::init();

if (self::$taskQueue === null) self::$taskQueue = new SplQueue();
self::$taskQueue ??= new SplQueue();

foreach ($coroutines as $coroutine) {
if (is_callable($coroutine)) $coroutine = call_user_func($coroutine);
Expand Down

0 comments on commit 06d4a4d

Please sign in to comment.