CreateRejectedPromise (open)

The CreateRejectedPromise function returns a new promise rejected with the passed argument.

Syntax

LOADLIB "wh::promise.whlib";

OBJECT FUNCTION CreateRejectedPromise(VARIANT e)

Parameters

VARIANT e

Value to reject the promise with

Return value

OBJECT

Rejected promise