method status
1 | class Promise |
1.1 | (Promise) method status |
2 | class X::Promise::CauseOnlyValidOnBroken |
2.1 | (X::Promise::CauseOnlyValidOnBroken) method status |
Documentation for method status
assembled from the following types:
class Promise
From Promise
(Promise) method status
method status(Promise --> PromiseStatus)
Returns the current state of the promise: Kept
, Broken
or Planned
:
say "promise got Kept" if .status ~~ Kept;
class X::Promise::CauseOnlyValidOnBroken
From X::Promise::CauseOnlyValidOnBroken
(X::Promise::CauseOnlyValidOnBroken) method status
method status()
Returns the status the Promise had at that time.