pub fn flush() -> Result<WaitGroup, LogError>