Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
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: