CreatePromise (open)
Creates a Promise.
Syntax
LOADLIB "wh::promise.whlib";
OBJECT FUNCTION CreatePromise(FUNCTION PTR executor)
Parameters
FUNCTION PTR executor
Takes a function pointer for an executor function which takes two function pointers as parameters: One for Resolve and one for Reject, respectively