Last active
August 17, 2023 20:33
-
-
Save FCO/650524bb5011ec4d2848659b523228d2 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
my $interval = .run-at: :5mins-running, :off, -> :$rule, :$time { | |
$rule.stop; | |
say "$time.hh-mm-ss(): interval has finished" | |
} | |
.run-at: :25mins-running, -> :$rule, :$time { | |
$rule.stop; say "$time.hh-mm-ss(): Time to relax"; | |
$interval.start | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment