Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make Channel.peek private, as it is not specced
  • Loading branch information
lizmat committed Nov 23, 2013
1 parent ea77e4f commit c64efea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vm/jvm/core/Channel.pm
Expand Up @@ -71,7 +71,7 @@ my class Channel {
}
}

method peek(Channel:D:) {
method !peek(Channel:D:) {
my \fetched := $!queue.'method/peek/()Ljava/lang/Object;'();
if nqp::jvmisnull(fetched) {
Nil
Expand Down Expand Up @@ -114,7 +114,7 @@ my class Channel {
}

method closed() {
self.peek();
self!peek();
$!closed_promise
}
}

0 comments on commit c64efea

Please sign in to comment.