yxorP Documentation

Apromise

Interfaces, Classes, Traits and Enums

PromiseInterface
PromisorInterface
TaskQueueInterface
AARejectionException
AggregateExceptionAA
CancellationExceptionAA
Coroutine
EachPromise
FulfilledPromise
Promise
RejectedPromise
TaskQueue

Table of Contents

queues()  : mixed
task()  : Promise
promise_for()  : FulfilledPromise|Promise|PromiseInterface
rejection_for()  : RejectedPromise|PromiseInterface
exception_for()  : Throwable|AARejectionException
iter_for()  : Iterator|ArrayIterator
inspect()  : array<string|int, mixed>
inspect_all()  : array<string|int, mixed>
unwrap()  : array<string|int, mixed>
all()  : RejectedPromise|FulfilledPromise|Promise|PromiseInterface
some()  : RejectedPromise|FulfilledPromise|Promise|PromiseInterface
any()  : RejectedPromise|FulfilledPromise|Promise|PromiseInterface
settle()  : RejectedPromise|FulfilledPromise|Promise|PromiseInterface
each()  : Promise|PromiseInterface
each_limit()  : Promise|PromiseInterface
each_limit_all()  : Promise|PromiseInterface
is_fulfilled()  : bool
is_rejected()  : bool
is_settled()  : bool
coroutine()  : Coroutine

Functions

iter_for()

iter_for(mixed $value) : Iterator|ArrayIterator
Parameters
$value : mixed
Return values
Iterator|ArrayIterator

inspect_all()

inspect_all(mixed $promises) : array<string|int, mixed>
Parameters
$promises : mixed
Return values
array<string|int, mixed>

unwrap()

unwrap(mixed $promises) : array<string|int, mixed>
Parameters
$promises : mixed
Return values
array<string|int, mixed>

each_limit()

each_limit(mixed $iterable, mixed $concurrency[, callable $onFulfilled = null ][, callable $onRejected = null ]) : Promise|PromiseInterface
Parameters
$iterable : mixed
$concurrency : mixed
$onFulfilled : callable = null
$onRejected : callable = null
Return values
Promise|PromiseInterface

Search results