class_docstr: Writes `Event` protocol buffers to an event file.
  
  The `EventFileWriter` class creates an event file in the specified
  directory, and asynchronously writes Event protocol buffers to the
  file. The Event file is encoded using the tfrecord format, which is
  similar to RecordIO.
docstr: Flushes the event file to disk.
  
  Call this method to make sure that all pending events have been
  written to disk.
docstr_tok: ["Flushes","the","event","file","to","disk",".","Call","this","method","to","make","sure","that","all","pending","events","have","been","written","to","disk","."]
code: def flush(self):
      """Flushes the event file to disk.
  
      Call this method to make sure that all pending events have been
      written to disk.
      """
      self._async_writer.flush()
  
imports: import os
  import queue
  import socket
  import threading
  import time
  from tensorboard.compat import tf
  from tensorboard.compat.proto import event_pb2
  from tensorboard.summary.writer.record_writer import RecordWriter
label_desc: Use image node_id 4 for calling the EventFileWriter obj's underlying member method code with example usage: obj.flush() without return types