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

Breadcrumb

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

function Loop::abortJobs

File

vendor/composer/composer/src/Composer/Util/Loop.php, line 114

Class

Loop
@author Jordi Boggiano <j.boggiano@seld.be>

Namespace

Composer\Util

Code

public function abortJobs() : void {
    foreach ($this->currentPromises as $promiseGroup) {
        foreach ($promiseGroup as $promise) {
            // to support react/promise 2.x we wrap the promise in a resolve() call for safety
            \React\Promise\resolve($promise)->cancel();
        }
    }
}

API Navigation

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