private void waitForTaskToComplete ( ) throws IOException { try { final Future < Void > future = this . completionService . take ( ) ; future . get ( ) ; } catch ( final InterruptedException e ) { throw Utility . initIOException ( e ) ; } catch ( final ExecutionException e ) { throw Utility . initIOException ( e ) ; } this . outstandingRequests -- ; }
Waits for one task to complete