async.js
This file
Path
examples/async.js
10 lines · 339 bytes · JavaScript
Last changed by
Asynchronous handlers working.csausdevbefore adoptionaa3167e
History of this fileTake it
Asynchronous handlers working.csausdevbefore adoptionaa3167e
lines 1–10why, one step back1require.paths.unshift("./lib")2require('express')34get('hello/:value/:time', function() {5 setTimeout(function() {6 Express.server.finished('<html><head><title>Asynchronous Example</title></head><body><h1>Hello '+param('value')+', I waited '+param('time')+'ms to talk to you.</h1></body></html>')7 }, param('time'))8});910Express.start();