-
-
Save ab5tract/a3f47f6122807adbac3bf9487bfc6cd8 to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/env raku | |
sub MAIN(:$seconds) { | |
say "Starting your timer to fire every $seconds seconds."; | |
my $supply = Supply.interval($seconds, :delay($seconds)); | |
react { | |
whenever $supply { | |
say "Your timer has chimed!"; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment