pub async fn flush() -> Result<(), DexcostError>
Forces all buffered events to be pushed immediately.