status
ErrorsCollection

status

Synthesised documentation from type/Promise type/X/Promise/CauseOnlyValidOnBroken

From type/Promise

See Original text in context

method status(Promise:D --> PromiseStatus)

Returns the current state of the promise: Kept, Broken or Planned:

say "promise got Kept" if $promise.status ~~ Kept;

From type/X/Promise/CauseOnlyValidOnBroken

See Original text in context

method status()

Returns the status the Promise had at that time.