A future value.

By: Julien Viet

no type hierarchy

no supertypes hierarchy

no subtypes hierarchy

Inherited Attributes
Attributes inherited from: Object
getSource Codeshared formal Value|Throwable get(Integer timeOut = -1)

Block until:

  • the value is available,
  • the thread is interrupted, or
  • an optional timeout occurs

When the timeout occurs an exception is thrown.

  • timeOut = -1

    The timeout in milliseconds, a negative value means no timeout

peekSource Codeshared formal <Value|Throwable>? peek()

Returns the value if it is present otherwise it returns null. This call does not block.

Inherited Methods
Methods inherited from: Object