Skip to main content

is_in_gc_traversal

Function is_in_gc_traversal 

Source
pub(crate) fn is_in_gc_traversal() -> bool
Available on non-Py_LIMITED_API or Py_3_11 only.
Expand description

Private helper function to check if we are currently in a GC traversal (as detected by PyO3).

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here