Jump to content




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


  • You cannot reply to this topic
1 reply to this topic

#1 Kadecamz

  • New Members
  • 113 posts

Posted 13 September 2012 - 04: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.

#2 Lettuce

  • Members
  • 210 posts
  • LocationIn your fridge.

Posted 13 September 2012 - 05: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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users