We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1745a13 commit 5e36e9dCopy full SHA for 5e36e9d
doc/Type/Promise.pod6
@@ -222,8 +222,7 @@ creates a chained promise.
222
223
=head2 method keep
224
225
- multi method keep(Promise:D:)
226
- multi method keep(Promise:D: \result)
+ multi method keep(Promise:D: \result = True)
227
228
Keeps a promise, optionally setting the result. If no result is passed, the
229
result will be C<True>.
@@ -242,8 +241,7 @@ taken. See method C<vow> for more information.
242
241
243
=head2 method break
244
245
- multi method break(Promise:D:)
246
- multi method break(Promise:D: \cause)
+ multi method break(Promise:D: \cause = False)
247
248
Breaks a promise, optionally setting the cause. If no cause is passed, the
249
cause will be C<False>.
0 commit comments