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

Breadcrumb

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

function PromiseInterface::resolve

Resolve the promise with the given value.

Parameters

mixed $value:

Throws

\RuntimeException if the promise is already resolved.

4 methods override PromiseInterface::resolve()
Coroutine::resolve in vendor/guzzlehttp/promises/src/Coroutine.php
Resolve the promise with the given value.
FulfilledPromise::resolve in vendor/guzzlehttp/promises/src/FulfilledPromise.php
Resolve the promise with the given value.
Promise::resolve in vendor/guzzlehttp/promises/src/Promise.php
Resolve the promise with the given value.
RejectedPromise::resolve in vendor/guzzlehttp/promises/src/RejectedPromise.php
Resolve the promise with the given value.

File

vendor/guzzlehttp/promises/src/PromiseInterface.php, line 59

Class

PromiseInterface
A promise represents the eventual result of an asynchronous operation.

Namespace

GuzzleHttp\Promise

Code

public function resolve($value) : void;

API Navigation

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