Function mozjs::jsapi::SetGCSliceCallback

source ยท
pub unsafe extern "C" fn SetGCSliceCallback(
    cx: *mut JSContext,
    callback: Option<unsafe extern "C" fn(_: *mut JSContext, _: GCProgress, _: *const GCDescription)>,
) -> Option<unsafe extern "C" fn(_: *mut JSContext, _: GCProgress, _: *const GCDescription)>
Expand description

The GC slice callback is called at the beginning and end of each slice. This callback may be used for GC notifications as well as to perform additional marking.