Returns a Boolean value that indicates whether garbage collection is currently enabled for the current process.
- macOS 10.5–10.10Deprecated
To check whether the current process is using garbage collection check the result of
nil, then garbage collection is permanently off. If
default is not
nil, then the current process is using garbage collection—you can then use
is to determine whether or not the collector is actually allowed to run right now.