Documentation for method vow
assembled from the following pages:
Class: Promise §
From Promise
(Promise) method vow §
my method 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»