Skip to content

Instantly share code, notes, and snippets.

@agrif
Created February 26, 2021 20:45
Show Gist options
  • Save agrif/c9e78ff86bd6e1b4ae50137a43eae150 to your computer and use it in GitHub Desktop.
Save agrif/c9e78ff86bd6e1b4ae50137a43eae150 to your computer and use it in GitHub Desktop.
pub async fn run(&mut self) -> anyhow::Result<()> {
loop {
for ad_or_news in &[true, false] {
for _ in 0..1 {
self.play_music().await?;
if *ad_or_news {
self.play_ad().await?;
} else {
self.play_news().await?;
}
self.play_id().await?;
self.play_mono().await?;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment