Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Wait for a garbage collection cycle?
Started by varscott16 Aug 24 2018 02:17 PM

- - - - -
1 reply to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

varscott16

[GLOBAL: userInfoPane.html]
varscott16
  • Observer

  • 6 posts
  • Corona SDK

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.



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,527 posts
  • Corona Staff

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




[topic_controls]
[/topic_controls]