void (final CompletionResult result) { if (ourIsInBatchUpdate.get().booleanValue()) { myBatchList.add(result); } else { myQueue.offer(() -> { tryReadOrCancel(indicator, () -> indicator.addItem(result)); return true; }); } }