Skip to content

Instantly share code, notes, and snippets.

@rphillips
Created May 18, 2012 20:21
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 rphillips/2af4a0934341623e7fe3 to your computer and use it in GitHub Desktop.
Save rphillips/2af4a0934341623e7fe3 to your computer and use it in GitHub Desktop.
local timer = require('timer')
local uv = require('uv_native')
timer.setInterval(1000, function()
p('test')
end)
timer.setTimeout(5000, function() end)
uv.unref()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment