Wait for a garbage collection cycle?

I know that it is possible to just force a gc cycle with collectgarbage(“collect”), but is there also a sure way for just waiting for it? For example a sleep function? I know this is a weird question but in the _ENV i’m working in I don’t have that luxury.

If you don’t do anything, that’s the same as waiting on collection. I’m not sure why you need more than “collect now” and “collect when its time”.

Rob

If you don’t do anything, that’s the same as waiting on collection. I’m not sure why you need more than “collect now” and “collect when its time”.

Rob