function InstallationManager::waitOnPromises
Parameters
array<PromiseInterface<void|null>> $promises:
2 calls to InstallationManager::waitOnPromises()
- InstallationManager::downloadAndExecuteBatch in vendor/
composer/ composer/ src/ Composer/ Installer/ InstallationManager.php - @phpstan-param array<callable(): ?PromiseInterface<void|null>> $cleanupPromises
- InstallationManager::executeBatch in vendor/
composer/ composer/ src/ Composer/ Installer/ InstallationManager.php - @phpstan-param array<callable(): ?PromiseInterface<void|null>> $cleanupPromises
File
-
vendor/
composer/ composer/ src/ Composer/ Installer/ InstallationManager.php, line 421
Class
- InstallationManager
- Package operation manager.
Namespace
Composer\InstallerCode
private function waitOnPromises(array $promises) : void {
$progress = null;
if ($this->outputProgress && $this->io instanceof ConsoleIO && !(bool) Platform::getEnv('CI') && !$this->io
->isDebug() && count($promises) > 1) {
$progress = $this->io
->getProgressBar();
}
$this->loop
->wait($promises, $progress);
if ($progress !== null) {
$progress->clear();
// ProgressBar in non-decorated output does not output a final line-break and clear() does nothing
if (!$this->io
->isDecorated()) {
$this->io
->writeError('');
}
}
}