Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. InstallationManager.php

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\Installer

Code

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('');
        }
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal