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
$cancelled
private
bool
$cancelled
= false
$result
private
string|null
$result
= null
Methods
cancel()
public
cancel() : void
Return values
void —getResolveCallbacks()
public
getResolveCallbacks() : array<string|int, Closure>
Tags
Return values
array<string|int, Closure> —getResult()
public
getResult() : string
Return values
string —hasResult()
public
hasResult() : bool
Return values
bool —isCancelled()
public
isCancelled() : bool
Return values
bool —onResolve()
public
onResolve(Closure ...$callbacks) : void
Parameters
- $callbacks : Closure
Tags
Return values
void —resolve()
public
resolve(string $result) : void
Parameters
- $result : string
Return values
void —checkCancelled()
private
checkCancelled() : void