Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Promise.keep/break no longer need explicit values
  • Loading branch information
lizmat committed Sep 17, 2014
1 parent 59013c3 commit 3a9b7a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion S17-concurrency.pod
Expand Up @@ -246,10 +246,12 @@ The simplest way to use a C<Promise> is to create one:

And then later C<keep> it:

$promise.keep(42);
$promise.keep; # True
$promise.keep(42); # a specific return value for kept Promise

Or C<break> it:

$promise.break; # False
$promise.break(X::Some::Problem.new); # With exception
$promise.break("I just couldn't do it"); # With message

Expand Down

0 comments on commit 3a9b7a1

Please sign in to comment.