Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (15 sloc) 0.408 kb
require "evc"
local loop = evc.default_loop()
print("loop: ", loop)
local stat = evc.stat_init("./foo")
print("stat (file change) watcher: ", stat)
print("-- Watching for changes to ./foo")
stat:set_cb(function(w, ev)
print("* Changed")
stat:stop(loop)
end)
stat:start(loop)
print("stat's path is", stat:path())
print "starting loop"
loop:loop()
print "done"
Jump to Line
Something went wrong with that request. Please try again.