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
$id
read-only
public
string
$id
__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
-
deferJob()
public
static deferJob(callable $deferredJob[, bool $runImmediatelyIfInBackground = true ]) : static
Parameters
-
$deferredJob
: callable
-
-
$runImmediatelyIfInBackground
: bool
= true
-
getResult()
public
getResult() : mixed
getState()
public
getState() : State
public
immediateIfBackground() : bool
onWait()
public
onWait() : mixed
then()
public
then([callable|null $onFulfilled = null ][, callable|null $onRejected = null ]) : static
Parameters
-
$onFulfilled
: callable|null
= null
-
-
$onRejected
: callable|null
= null
-
wait()
public
wait() : mixed