/** * Close the stream and release all resources * @param handler will be called when the operation has finished (may be null) */ void close(Handler<AsyncResult<Void>> handler); }
.doAfterTerminate(() -> { crs.close(); })), false, 1 /* write only one chunk concurrently to the output stream */) .defaultIfEmpty(Pair.of(0L, 0L))