code: void afterWrite(Runnable task) {
          writeBuffer.add(task);
          drainStatus.lazySet(REQUIRED);
          tryToDrainBuffers();
          notifyListener();
      }
docs: Performs the post-processing work required after a write.
  
  @param task the pending operation to be applied