Jump to content




[Question] [Computercraft] Too long without yeilding


  • You cannot reply to this topic
4 replies to this topic

#1 bjornir90

  • Members
  • 378 posts
  • LocationFrance

Posted 09 February 2013 - 07:03 PM

Hello everyone !
I want to know how many time I have before the computer run into a "too long without yeilding"
I assume the computer won't yeild.
Thanks you for your time :)

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 09 February 2013 - 07:28 PM

Just yield once in a while. It's about ten seconds, though. Why wouldn't you be yielding?

#3 ChunLing

  • Members
  • 2,027 posts

Posted 09 February 2013 - 08:51 PM

Generally, you want to yield pretty much instantly, or as often as possible, because while a program doesn't yield no other computers or turtles can do anything.

#4 mibac138

  • Members
  • 132 posts
  • LocationPoland

Posted 10 February 2013 - 01:32 AM

use
sleep(0)
;)

#5 bjornir90

  • Members
  • 378 posts
  • LocationFrance

Posted 10 February 2013 - 05:38 AM

I know that but I was having an idea about a program that secure somethings and to avoid crash I want to add a security to stop the program before the error :) Anyways, thanks you :)





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users