Wednesday 24 May 2017

Pause a function to listen to requests

I am running a long loop inside a function in NodeJS and knowing that JS by its nature does not allow anything to interrupt a function, I wanted to know is their a way to pause a function's execution to listen to requests from client that I am no able to do currently



via akabhirav

No comments:

Post a Comment