Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250706) (a6b17d8f6bd)
GuzzleHttp\Promise\Create Class Reference

Static Public Member Functions

static exceptionFor ($reason)
 Create an exception for a rejected promise value.
 
static iterFor ($value)
 Returns an iterator for the given value.
 
static promiseFor ($value)
 
static rejectionFor ($reason)
 Creates a rejected promise for a reason if the reason is not a promise.
 

Member Function Documentation

◆ exceptionFor()

static GuzzleHttp\Promise\Create::exceptionFor ( $reason)
static

Create an exception for a rejected promise value.

Parameters
mixed$reason

◆ iterFor()

static GuzzleHttp\Promise\Create::iterFor ( $value)
static

Returns an iterator for the given value.

Parameters
mixed$value

◆ rejectionFor()

static GuzzleHttp\Promise\Create::rejectionFor ( $reason)
static

Creates a rejected promise for a reason if the reason is not a promise.

If the provided reason is a promise, then it is returned as-is.

Parameters
mixed$reasonPromise or reason.

The documentation for this class was generated from the following file: