Friday, 4 April 2014

Nodejs setTimeOut function

I don't know how to use setTimeOut duty in NodeJS. Let contend we want:a
duty A() to be called each 10 seconds. if a duty A relapse a outcome from
callback of value 'true', it will call an URL and DONE!if a duty A keep
advantage a outcome from callback of value 'false', keep job until it
viewed 'YES' for 10 minsif it reachs 10 mins max and there still no 'true'
result, finally relapse 'false'how do we do that in Node.js please!

No comments:

Post a Comment