final class FuturePreparedStatement implements Future (View source)

A future returned from Session::prepareAsync() This future will resolve with a PreparedStatement or an exception.

Methods

mixed
get(int|float|null $timeout)

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

Details

mixed get(int|float|null $timeout)

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

Parameters

int|float|null $timeout

A timeout in seconds

Return Value

mixed

a value that the future has been resolved with

Exceptions

TimeoutException
InvalidArgumentException