Function script::dom::bindings::import::module::jsapi::AddGCNurseryCollectionCallback

source ยท
pub unsafe extern "C" fn AddGCNurseryCollectionCallback(
    cx: *mut JSContext,
    callback: Option<unsafe extern "C" fn(_: *mut JSContext, _: GCNurseryProgress, _: GCReason, _: *mut c_void)>,
    data: *mut c_void,
) -> bool
Expand description

Add and remove nursery collection callbacks for the given runtime. These will be called at the start and end of every nursery collection.