jsNewPromiseCapability top-level property

Pointer<JSValue> Function(Pointer<JSContext> ctx, Pointer<JSValue> resolvingFuncs) jsNewPromiseCapability
final

JSValue *jsNewPromiseCapability(JSContext *ctx, JSValue *resolving_funcs)

Implementation

final Pointer<JSValue> Function(
  Pointer<JSContext> ctx,
  Pointer<JSValue> resolvingFuncs,
) jsNewPromiseCapability = _qjsLib
    .lookup<
        NativeFunction<
            Pointer<JSValue> Function(
              Pointer<JSContext>,
              Pointer<JSValue>,
            )>>('jsNewPromiseCapability')
    .asFunction();