method vow
Documentation for method vow
assembled from the following types:
class Promise
From Promise
(Promise) method vow
mymethod vow(Promise: --> Vow)
Returns an object that holds the sole authority over keeping or breaking a promise. Calling keep
or break
on a promise that has vow taken throws an exception of type X::Promise::Vowed
.
my = Promise.new;my = .vow;.keep();say .status; # OUTPUT: «Kept»