Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Simplify Supply.list
  • Loading branch information
moritz committed Dec 22, 2014
1 parent 284c098 commit f57427b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/core/Supply.pm
Expand Up @@ -153,13 +153,7 @@ my role Supply {

method list(Supply:D:) {
# Use a Channel to handle any asynchrony.
my $c = self.Channel;
map sub ($) {
earliest $c {
more * { $_ }
done * { last }
}
}, *;
self.Channel.list;
}

method on_demand(Supply:U: |c) { SupplyOperations.on_demand(|c) }
Expand Down

0 comments on commit f57427b

Please sign in to comment.