Bitrix API

BackgroundJobPromise extends Promise

Table of Contents

Properties

$id  : string

Methods

__construct()  : mixed
catch()  : static
deferJob()  : static
getResult()  : mixed
getState()  : State
immediateIfBackground()  : bool
onWait()  : mixed
then()  : static
wait()  : mixed

Properties

Methods

__construct()

public __construct(callable $job[, callable|null $backgroundPart = null ][, bool $immediateIfBackground = true ]) : mixed
Parameters
$job : callable
$backgroundPart : callable|null = null
$immediateIfBackground : bool = true

catch()

public catch(callable $onRejected) : static
Parameters
$onRejected : callable
Return values
static

deferJob()

public static deferJob(callable $deferredJob[, bool $runImmediatelyIfInBackground = true ]) : static
Parameters
$deferredJob : callable
$runImmediatelyIfInBackground : bool = true
Return values
static

getResult()

public getResult() : mixed

then()

public then([callable|null $onFulfilled = null ][, callable|null $onRejected = null ]) : static
Parameters
$onFulfilled : callable|null = null
$onRejected : callable|null = null
Return values
static

        
On this page

Search results