Version 2 (modified by tobi, 6 years ago)

--

AsyncRequest?

This module provides a neat way to process time-consuming tasks which otherwise would pose the risk of a request timeout. Instead of fiddling around with scheduler or cron methods, you simply start the desired method via a browser request. AsyncRequest? starts the method, but immediately sends back the response to the browser - of course without stopping the running method.

Example:

global.longTrainRunning = function(msg) {
   var n = 0;
   while (n++ < 100000) {
      app.log(msg);
   }
   return;
};
var async = new jala.AsyncRequest(global, "longTrainRunning", ["choochoo!"]);

I18n (Internationalization)