parameters: (self)
docstring: Flushes the event file to disk.
          Call this method to make sure that all pending events have been written to
          disk.
docstring_summary: Flushes the event file to disk.
          Call this method to make sure that all pending events have been written to
          disk.
docstring_tokens: Flushes the event file to disk . Call this method to make sure that all pending events have been written to disk .
function: def flush(self):
          """Flushes the event file to disk.
          Call this method to make sure that all pending events have been written to
          disk.
          """
          if self.all_writers is None:
              return
          for writer in self.all_writers.values():
              writer.flush()
function_tokens: def flush ( self ) : if self . all_writers is None : return for writer in self . all_writers . values ( ) : writer . flush ( )