Skip to content

Commit

Permalink
Merge pull request #50 from reactphp-parallel/2.x-queue-deferred-reso…
Browse files Browse the repository at this point in the history
…lve-null

Pass NULL into deferred resolve call
  • Loading branch information
WyriHaximus authored Feb 2, 2024
2 parents 1ecc56f + 3a964ab commit 55702ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Limited.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function run(Closure $callable, array $args = []): mixed

if ($this->idleRuntimes === 0) {
$deferred = new Deferred();
$this->queue->enqueue([$deferred, 'resolve']);
$this->queue->enqueue(static fn () => $deferred->resolve(null));

await($deferred->promise());
}
Expand Down

0 comments on commit 55702ef

Please sign in to comment.