Futures are returns from asynchronous methods.

See Also:

Implemented by

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 that the future has been resolved with