/// Clear queue.
///
/// Doesn't require any input, returns empty response.
Clear queue.
Doesn't require any input, returns empty response.
Clear queue . Doesn ' t require any input returns empty response .
pub async fn clear(manager: Arc<Manager<'_>>, name: String) -> Result<Json> {
    let queue = manager.queue(&name)?;
    queue.log_event(&name, &manager, Event::Clear).await?;
    queue.database().await.clear();
    Ok(json(&()))
}
pub async fn clear ( manager : Arc < Manager < ' _ > > , name : String ) -> Result < Json > { let queue = manager . queue ( & name ) ? ; queue . log_event ( & name , & manager , Event :: Clear ) . await ? ; queue . database ( ) . await . clear ( ) ; Ok ( json ( & ( ) ) ) }
Clear queue.
Clear queue .
manager
Arc<Manager<'_>>
name
String