Skip to content

Instantly share code, notes, and snippets.

@cloudhead
Created January 22, 2010 06:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cloudhead/02c266dc16d9986274d0 to your computer and use it in GitHub Desktop.
Save cloudhead/02c266dc16d9986274d0 to your computer and use it in GitHub Desktop.
96 sys.puts("1")
97 get('/').addCallback(function () {
98 sys.puts("callback 1")
99 })
100 sys.puts("2")
101 get('/').addCallback(function () {
102 sys.puts("callback 2")
103 })
104 sys.puts("3")
105 get('/').addCallback(function () {
106 sys.puts("callback 3")
107 })
// OUTPUT
1
2
callback 1
3
callback 2
callback 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment