jSObjectMakeDeferredPromise top-level property
Pointer<NativeType> Function(Pointer<NativeType> ctx, Pointer<NativeType> resolve, Pointer<NativeType> reject, Pointer<Pointer<NativeType> > exception)
jSObjectMakeDeferredPromise
final
Creates a JavaScript promise object by invoking the provided executor.
ctx
(JSContextRef) The execution context to use.
resolve
(JSObjectRef*) 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
(JSObjectRef*) 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
(JSValueRef*) 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
(JSObjectRef) A JSObject that is a promise or NULL if an exception occurred.
Implementation
final Pointer Function(Pointer ctx, Pointer resolve, Pointer reject,
Pointer<Pointer> exception) jSObjectMakeDeferredPromise =
JscFfi.lib
.lookup<
NativeFunction<
Pointer Function(Pointer, Pointer, Pointer,
Pointer<Pointer>)>>('JSObjectMakeDeferredPromise')
.asFunction();