Documentation for method status assembled from the following pages:

Class: X::Promise::CauseOnlyValidOnBroken §

From X::Promise::CauseOnlyValidOnBroken

(X::Promise::CauseOnlyValidOnBroken) method status §

method status()

Returns the status the Promise had at that time.

Class: Promise §

From Promise

(Promise) method status §

method status(Promise:D --> PromiseStatus)

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

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