This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Rougeminner's profile picture

Background

Started by Rougeminner, 13 September 2014 - 03:55 PM
Rougeminner #1
Posted 13 September 2014 - 05:55 PM
I need some help making a background task and i do not know how so i came to here for help :)/> i need to run os.start timer in the background whiteout it halting access to the PDA/Computer can someone help me.
MKlegoman357 #2
Posted 13 September 2014 - 07:19 PM
Did you mean sleep (aka os.sleep)? Because os.startTimer doesn't yield (halt) the computer. It starts a timer (internally) and returns it's unique ID (a number).
Bomb Bloke #3
Posted 14 September 2014 - 02:45 AM
The best way to do it depends on the code you want to run "alongside" the timer.