Documentation for method broken assembled from the following pages:

Class: Promise §

From Promise

(Promise) 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")