[][src]Function ul_sys::JSObjectMakeDeferredPromise

pub unsafe extern "C" fn JSObjectMakeDeferredPromise(
    ctx: JSContextRef,
    resolve: *mut JSObjectRef,
    reject: *mut JSObjectRef,
    exception: *mut JSValueRef
) -> JSObjectRef

@function @abstract Creates a JavaScript promise object by invoking the provided executor. @param ctx The execution context to use. @param 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. @param 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. @param 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.