Documentation

CompressBatchPromise
in package

Table of Contents

$callbacks  : array<string|int, Closure>
$cancelled  : bool
$result  : string|null
cancel()  : void
getResolveCallbacks()  : array<string|int, Closure>
getResult()  : string
hasResult()  : bool
isCancelled()  : bool
onResolve()  : void
resolve()  : void
checkCancelled()  : void

Properties

$callbacks

private array<string|int, Closure> $callbacks = []
Tags
phpstan-var

(\Closure(self) : void)[]

Methods

getResolveCallbacks()

public getResolveCallbacks() : array<string|int, Closure>
Tags
phpstan-return

(\Closure(self) : void)[]

Return values
array<string|int, Closure>

onResolve()

public onResolve(Closure ...$callbacks) : void
Parameters
$callbacks : Closure
Tags
phpstan-param

\Closure(self) : void ...$callbacks

Return values
void

resolve()

public resolve(string $result) : void
Parameters
$result : string
Return values
void

Search results