Function 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.