Page 1 of 1

Server Code sleep function

Posted: Thu Nov 21, 2013 2:26 pm
by William Bradee

Server code JavaScript is synchronous programming model -- for instance query, get response, inline with no callbacks.

So it supports blocking

Would be nice to have a sleep function so I could add polling and periodic tasks on the server.

Polling on server eliminates complexity and extra network traffic on the client.

Periodic tasks would allow me to age out data without initiating something from a client (e.g. only keep 7 days of history).


Server Code sleep function

Posted: Fri Nov 22, 2013 5:05 am
by maxkatz

We are working on adding a feature where you can schedule jobs (tasks to run).