reject

Returns a new Promise which is rejected with the given reason.

Promise!(T, E)
reject
(
T
E
)
()

Meta