Created
February 26, 2021 20:45
-
-
Save agrif/c9e78ff86bd6e1b4ae50137a43eae150 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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