Deferred
in package
FinalYes
Tags
Table of Contents
Properties
- $promise : PromiseInterface<string|int, T>
- $rejectCallback : callable(Throwable): void
- $resolveCallback : callable(T): void
Methods
- __construct() : mixed
- promise() : PromiseInterface<string|int, T>
- reject() : void
- resolve() : void
Properties
$promise
private
PromiseInterface<string|int, T>
$promise
$rejectCallback
private
callable(Throwable): void
$rejectCallback
$resolveCallback
private
callable(T): void
$resolveCallback
Methods
__construct()
public
__construct([callable(callable(T): void, callable(Throwable): void): void|null $canceller = null ]) : mixed
Parameters
- $canceller : callable(callable(T): void, callable(Throwable): void): void|null = null
promise()
public
promise() : PromiseInterface<string|int, T>
Return values
PromiseInterface<string|int, T>reject()
public
reject(Throwable $reason) : void
Parameters
- $reason : Throwable
resolve()
public
resolve(T $value) : void
Parameters
- $value : T