pub unsafe extern "C" fn SetGCNurseryCollectionCallback(
    cx: *mut JSContext,
    callback: Option<unsafe extern "C" fn(_: *mut JSContext, _: GCNurseryProgress, _: GCReason)>
) -> Option<unsafe extern "C" fn(_: *mut JSContext, _: GCNurseryProgress, _: GCReason)>
Expand description

Set the nursery collection callback for the given runtime. When set, it will be called at the start and end of every nursery collection.