Documentation for method cause assembled from the following pages:

Class: Promise §

From Promise

(Promise) method cause §

method cause(Promise:D:)

If the promise was broken, returns the result (or exception). Otherwise, throws an exception of type X::Promise::CauseOnlyValidOnBroken.