Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add noop handling to Supply.(stable|delay)
  • Loading branch information
lizmat committed Apr 28, 2014
1 parent e75fd4a commit 165bb97
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/SupplyOperations.pm
Expand Up @@ -197,6 +197,9 @@ my class SupplyOperations is repr('Uninstantiable') {
}

method stable(Supply $source, $time, :$scheduler = $*SCHEDULER) {

return $source if !$time; # nothing to do

my class StableSupply does Supply does PrivatePublishing {
has $!source;
has $!time;
Expand Down Expand Up @@ -237,6 +240,9 @@ my class SupplyOperations is repr('Uninstantiable') {
}

method delay(Supply $source, $time, :$scheduler = $*SCHEDULER) {

return $source if !$time; # nothing to do

my class DelaySupply does Supply does PrivatePublishing {
has $!source;
has $!time;
Expand Down

0 comments on commit 165bb97

Please sign in to comment.