cause
ErrorsCollection

cause

Synthesised documentation from type/Promise

From type/Promise

See Original text in context

method cause(Promise:D:)

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