1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Promise
Граф наследования:Promise:
Promise Promise

Открытые члены

 __construct ($handler, Queue $queue)
 then (callable $onFulfilled=null, callable $onRejected=null)
 getState ()
 wait ($unwrap=true)
 fulfill (ResponseInterface $response)
 reject (ClientException $exception)
 getRequest ()
 getId ()
 getHandler ()

Защищенные данные

string $state = self::PENDING
 $onFulfilled = []
 $onRejected = []
 $handler
Queue $queue
ResponseInterface $response
ClientException $exception = null
string $id = ''

Подробное описание

См. определение в файле promise.php строка 16

Конструктор(ы)

◆ __construct()

__construct ( $handler,
Queue $queue )

См. определение в файле promise.php строка 36

Методы

◆ fulfill()

fulfill ( ResponseInterface $response)

Fulfills the promise.

Аргументы
ResponseInterface$response
Возвращает
void

См. определение в файле promise.php строка 110

◆ getHandler()

getHandler ( )
abstract

Переопределяется в Promise и Promise.

◆ getId()

getId ( )

Returns the promise's id string.

Возвращает
string

См. определение в файле promise.php строка 166

◆ getRequest()

getRequest ( )
Возвращает
RequestInterface

См. определение в файле promise.php строка 156

◆ getState()

getState ( )

См. определение в файле promise.php строка 79

◆ reject()

reject ( ClientException $exception)

Rejects the promise.

Аргументы
ClientException$exception
Возвращает
void

См. определение в файле promise.php строка 133

◆ then()

then ( callable $onFulfilled = null,
callable $onRejected = null )

См. определение в файле promise.php строка 45

◆ wait()

wait ( $unwrap = true)

См. определение в файле promise.php строка 87

Поля

◆ $exception

ClientException $exception = null
protected

См. определение в файле promise.php строка 32

◆ $handler

$handler
protected

См. определение в файле promise.php строка 26

◆ $id

string $id = ''
protected

См. определение в файле promise.php строка 34

◆ $onFulfilled

$onFulfilled = []
protected

См. определение в файле promise.php строка 21

◆ $onRejected

$onRejected = []
protected

См. определение в файле promise.php строка 24

◆ $queue

Queue $queue
protected

См. определение в файле promise.php строка 28

◆ $response

ResponseInterface $response
protected

См. определение в файле promise.php строка 30

◆ $state

string $state = self::PENDING
protected

См. определение в файле promise.php строка 18


Объявления и описания членов класса находятся в файле: