Okay so this is a perfect
thread for you, particularly
my reply.
also it should be noted that Coroutines do not run at the same time, so this
surferpup, on 30 January 2014 - 12:55 AM, said:
But I thought this would set up two "threads" and allow me to work off of whichever triggered first.
may not have the intention you're hoping for. actually its a pointless use of coroutines, just setup an event loop that checks the events.
Grim Reaper, on 30 January 2014 - 01:11 AM, said:
Also, the "rednet_message" event no longer exists, if I'm not mistaken. If you want to handle communications over rednet, you'll have to use "modem_message" to capture modem messages as that is the way rednet works now. You can still use the rednet functions, but they are actually using "modem_message" underneath.
You are mistaken, the
rednet_message event still exists for backward compatibility, there is a rednet coroutine running with the shell that translates
modem_message into
rednet_message
Edited by theoriginalbit, 30 January 2014 - 01:16 AM.