Function JSObjectSetAsyncIterator

Source
pub unsafe extern "C" fn JSObjectSetAsyncIterator(
    ctx: JSContextRef,
    object: JSObjectRef,
    value: JSValueRef,
    attributes: JSPropertyAttributes,
    exception: *mut JSValueRef,
)
Expand description

@function @abstract Implement the async iterable protocol on an object. @param ctx The execution context to use. @param object The JSObject to implement the async iterable protocol on. @param value A zero-argument function that returns an object, conforming to the async iterator protocol. @param attributes A logically ORed set of JSPropertyAttributes to give to the property. @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.