Skip to content

Commit

Permalink
Set future to null after resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Jan 10, 2025
1 parent 7f8b287 commit a34c3f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Driver/ParallelFilesystemDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ private function selectWorker(): Worker
if ($this->workerStorage->count() < $this->workerLimit) {
$this->pendingWorker = async($this->pool->getWorker(...));
$worker = $this->pendingWorker->await();
$this->pendingWorker = null;

$this->workerStorage[$worker] = 1;

Expand Down

0 comments on commit a34c3f3

Please sign in to comment.