Nonblocking Code

Hi All,

I have recently started coding in Node.js and starting to learn the wonders of non blocking code, and being able to use call backs.

So my question is… can you do anything like this in C/Wiring, for example run some code and then continue whilst you wait for another result and then run the call back?

Is it possible to save a function as an object so you can potentially pass it around?

I was thinking of somehow simplifying the “timer” method most people use by having a function you can run by passing it two arguments (time, function to execute)

Anyway would love to hear what people suggest

This might be what you are looking for; :wink:

1 Like