pub async fn write_event(&mut self, event: Event) -> Result<()> {
        self.events_writer.send(event).await?;
        if self.auto_flush {
            self.events_writer.flush().await?;
        }
        Ok(())
    }
/// Write a custom event asynchronously.
Write a custom event asynchronously.
Write a custom event asynchronously .
pub async fn write_event(&mut self, event: Event) -> Result<()> {
        self.events_writer.send(event).await?;
        if self.auto_flush {
            self.events_writer.flush().await?;
        }
        Ok(())
    }
pub async fn write_event ( & mut self , event : Event ) -> Result < ( ) > { self . events_writer . send ( event ) . await ? ; if self . auto_flush { self . events_writer . flush ( ) . await ? ; } Ok ( ( ) ) }
Write a custom event asynchronously.
Write a custom event asynchronously .
&mut self
event
Event
&mut self
event
Event