summaryrefslogtreecommitdiffstats
path: root/dom/base/test/slow.sjs
blob: e635721907b1b700e45c3f579719099de2ec1aec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function handleRequest(request, response) {
  response.processAsync();

  timer = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer);
  timer.init(
    function () {
      response.write("/* Here the content. But slowly. */");
      response.finish();
    },
    5000,
    Ci.nsITimer.TYPE_ONE_SHOT
  );
}