function HttpDownloader::wait
Wait for current async download jobs to complete
Parameters
int|null $index For internal use only, the job id:
Return value
void
2 calls to HttpDownloader::wait()
- HttpDownloader::copy in vendor/
composer/ composer/ src/ Composer/ Util/ HttpDownloader.php - Copy a file synchronously
- HttpDownloader::get in vendor/
composer/ composer/ src/ Composer/ Util/ HttpDownloader.php - Download a file synchronously
File
-
vendor/
composer/ composer/ src/ Composer/ Util/ HttpDownloader.php, line 360
Class
- HttpDownloader
- @author Jordi Boggiano <j.boggiano@seld.be> @phpstan-type Request array{url: non-empty-string, options: mixed[], copyTo: string|null} @phpstan-type Job array{id: int, status: int, request: Request, sync: bool, origin: string, resolve?: callable,…
Namespace
Composer\UtilCode
public function wait(?int $index = null) {
do {
$jobCount = $this->countActiveJobs($index);
} while ($jobCount);
}