def future_flush(self): with ProcessPoolExecutor() as executor: executor.submit(self.flush_to_file())