Skip to content

Commit 5e36e9d

Browse files
committed
Make it easier to see defaults for Promise.keep/cause
1 parent 1745a13 commit 5e36e9d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

doc/Type/Promise.pod6

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,7 @@ creates a chained promise.
222222
223223
=head2 method keep
224224
225-
multi method keep(Promise:D:)
226-
multi method keep(Promise:D: \result)
225+
multi method keep(Promise:D: \result = True)
227226
228227
Keeps a promise, optionally setting the result. If no result is passed, the
229228
result will be C<True>.
@@ -242,8 +241,7 @@ taken. See method C<vow> for more information.
242241
243242
=head2 method break
244243
245-
multi method break(Promise:D:)
246-
multi method break(Promise:D: \cause)
244+
multi method break(Promise:D: \cause = False)
247245
248246
Breaks a promise, optionally setting the cause. If no cause is passed, the
249247
cause will be C<False>.

0 commit comments

Comments
 (0)