script::dom::bindings::import::module::jsapi::JS

Function IncrementalGCHasForegroundWork

source
pub unsafe extern "C" fn IncrementalGCHasForegroundWork(
    cx: *mut JSContext,
) -> bool
Expand description

Return whether an incremental GC has work to do on the foreground thread and would make progress if a slice was run now. If this returns false then the GC is waiting for background threads to finish their work and a slice started now would return immediately.