Bitrix API

Promise extends Promise

Table of Contents

Methods

__construct()  : mixed
fulfill()  : void
Fulfills the promise.
getHandler()  : Handler
getId()  : string
Returns the promise's id string.
getRequest()  : RequestInterface
getState()  : mixed
reject()  : void
Rejects the promise.
then()  : mixed
wait()  : mixed

Methods

fulfill()

Fulfills the promise.

public fulfill(ResponseInterface $response) : void
Parameters
$response : ResponseInterface

getId()

Returns the promise's id string.

public getId() : string
Return values
string

getRequest()

public getRequest() : RequestInterface
Return values
RequestInterface

getState()

public getState() : mixed
Tags
inheritdoc

then()

public then([callable $onFulfilled = null ][, callable $onRejected = null ]) : mixed
Parameters
$onFulfilled : callable = null
$onRejected : callable = null
Tags
inheritdoc

wait()

public wait([mixed $unwrap = true ]) : mixed
Parameters
$unwrap : mixed = true
Tags
inheritdoc

        
On this page

Search results