In Promise§
See primary documentation in context for method broken.
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")