Documentation

HTTPClosure
in package

FinalYes

Legacy wrapper around a callable with HTTP command execution options.

Included for historical compatibility only. This API is deprecated and should not be used in new code.

Tags
author

Daniel Schulz

since
2017-06-21

Table of Contents

Properties

$options  : mixed
$task  : mixed

Methods

__construct()  : mixed
isCachable()  : bool
isThreaded()  : bool
run()  : mixed

Properties

$options

protected mixed $options = ['isThreaded' => false, 'isCachable' => false]

Methods

__construct()

public __construct(array<string|int, mixed> $options, Closure $task) : mixed
Parameters
$options : array<string|int, mixed>
$task : Closure

isCachable()

public isCachable() : bool
Return values
bool

isThreaded()

public isThreaded() : bool
Return values
bool

run()

public run(mixed ...$args) : mixed
Parameters
$args : mixed
On this page

Search results