Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove .winners for now
To prevent anybody from using it while the spec is still very much in flux.
  • Loading branch information
lizmat committed Apr 7, 2014
1 parent eb85757 commit c575000
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
1 change: 0 additions & 1 deletion docs/ChangeLog
Expand Up @@ -2,7 +2,6 @@ New in 2014.04

+ S17 (concurrency) now in MoarVM (except timing related features)
+ winner { done @promises { ... } } now works
+ .winners() on lists of Promises/Channels: lazy list in order of kept / more
+ implemented univals(), .unival and .univals (on MoarVM)
+ make .pick/.roll behave sanely on Enums

Expand Down
22 changes: 0 additions & 22 deletions src/core/List.pm
Expand Up @@ -371,28 +371,6 @@ my class List does Positional { # declared in BOOTSTRAP
self[$index];
}

#?if !parrot
method winners (&block?) {
my @awaitables = self.list;
my @indexes = ^+@awaitables;

map {
last if !@awaitables;

winner * {
done @awaitables {
# for some reason we cannot check &block for definedness
# as it will bomb on a signature mismatch *without* being called
INVOKE_KV( &block // sub {}, @indexes[$:k], $:v );
@awaitables.splice( $:k, 1 );
@indexes.splice( $:k, 1 );
$:v;
};
}
}, *;
}
#?endif

multi method ACCEPTS(List:D: $topic) {
my $sseq = self;
my $tseq = $topic.list;
Expand Down

0 comments on commit c575000

Please sign in to comment.