JSObjectMakeDeferredPromise top-level property
JSObjectRef Function(JSContextRef ctx, Pointer<JSObjectRef> resolve, Pointer<JSObjectRef> reject, Pointer<JSValueRef> exception)
JSObjectMakeDeferredPromise
final
MacOS 10.15, iOS 13.0
Creates a JavaScript promise object by invoking the provided executor.
ctx
The execution context to use.
resolve
A pointer to a JSObjectRef in which to store the resolve function for the new promise. Pass NULL if you do not care to store the resolve callback.
reject
A pointer to a JSObjectRef in which to store the reject function for the new promise. Pass NULL if you do not care to store the reject callback.
exception
A pointer to a JSValueRef in which to store an exception, if any. Pass NULL if you do not care to store an exception.
@result
A JSObject that is a promise or NULL if an exception occurred.
Implementation
final JSObjectRef Function(JSContextRef ctx, Pointer<JSObjectRef> resolve, Pointer<JSObjectRef> reject, Pointer<JSValueRef> exception) JSObjectMakeDeferredPromise = jscLib
.lookup<NativeFunction<JSObjectRef Function(JSContextRef ctx, Pointer<JSObjectRef> resolve, Pointer<JSObjectRef> reject, Pointer<JSValueRef> exception)>>('JSObjectMakeDeferredPromise')
.asFunction();