Promise.reject

void reject(string errorMsg) @trusted

Complete the promise with an error.

All registered onError callbacks will be invoked with the message. Subsequent calls to resolve or reject are ignored.

Parameters

errorMsgThe error message describing what went wrong.