Permalink
Browse files

Eradicate Promise.has_result, as per new spec

  • Loading branch information...
lizmat committed Nov 15, 2013
1 parent a75d7fa commit 5a4b72b308077157b4f60f78922c1ea262668abd
Showing with 2 additions and 6 deletions.
  1. +2 −6 src/vm/jvm/core/Promise.pm
@@ -102,14 +102,10 @@ my class Promise {
}
}
- method has_result(Promise:D:) {
+ method Bool(Promise:D:) {
so $!status == any(Broken, Kept)
}
-
- multi method Bool(Promise:D:) {
- self.has_result
- }
-
+
method cause(Promise:D:) {
if $!status == Broken {
$!result

0 comments on commit 5a4b72b

Please sign in to comment.