THE FORUM IS IN READ-ONLY MODE
This forum is in read-only mode. The new forum is live at https://discourse.openbullet.dev and registrations are open!
NodeJs asynch
-
Wanna control my mailbox, and I want to my code run undefinitely(until Ive closed it), once it received an email in my acct, do some stuff, delete that mail and wait to another one, once the new one is being arrived, repeat the same stuff and so on
Possible ?
-
@L4roy Openbullet cannot do this.
-
It was related to js, not openbullet
-
while(true) { // Code }
-
Is there any issue with that ?
I have found it, setInterval is much better than an infinite loop I think
-
setInterval does X every N milliseconds, you want it to run indefinitely, a while loop will run the code indefinitely, not every X ms
-
I want a small timeout, this is why I have used that