reject

fun reject(reason: Any?)

Rejects the promise with reason.