Retrieves and removes the Future representing the next completed task, waiting if necessary up to the specified wait time if none are yet present.
timeout | how long to wait before giving up, in units of
unit | |
unit | a TimeUnit determining how to interpret the
timeout parameter |
null if the specified waiting time elapses
before one is present
InterruptedException | if interrupted while waiting |
Diagram: Misc