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
Table of Contents
Properties
Methods
- __construct() : mixed
- isCachable() : bool
- isThreaded() : bool
- run() : mixed
Properties
$options
protected
mixed
$options
= ['isThreaded' => false, 'isCachable' => false]
$task
protected
mixed
$task
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
boolisThreaded()
public
isThreaded() : bool
Return values
boolrun()
public
run(mixed ...$args) : mixed
Parameters
- $args : mixed