Documentation

Deferred
in package

FinalYes
Tags
template

T

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

$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

reject()

public reject(Throwable $reason) : void
Parameters
$reason : Throwable

resolve()

public resolve(T $value) : void
Parameters
$value : T

        
On this page

Search results