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

How do I detect an event without pausing until one is detected

Started by Kadecamz, 13 September 2012 - 03:54 AM
Kadecamz #1
Posted 13 September 2012 - 05:54 AM
I'm making a LRC chatroom with rednet and I need to know how to do what is shown in the title to be able to still print messages from other computers, and os.pullEvent() just pauses it until that certain event happens.
Lettuce #2
Posted 13 September 2012 - 06:15 AM
parallel.waitForAny() and name your parameters. Since you aren't very specific, I can't give you dummy code to model it after. Look up the wiki. Type "parallel" and it will give you a basic rundown of how to use it.