A future that always resolves in a value.

Implements

Methods

mixed

get

( mixed $timeout )

Waits for a given future resource to resolve and throws errors if any.

Parameters:
Name Type Details
$timeout int|double

A timeout in seconds

Throws:
Type Details
Exception\InvalidArgumentException
Exception\TimeoutException
Returns:
Type Details
mixed

A value