broken
ErrorsCollection

broken

Synthesised documentation from type/Promise

From type/Promise

See Original text in context

multi method broken(Promise:U: --> Promise:D)
multi method broken(Promise:U: \exception --> Promise:D)

Returns a new promise that is already broken, either with the given value, or with the default value X::AdHoc.new(payload => "Died")