3 local uloop = require("uloop")
9 print("1000 ms timer run");
12 timer = uloop.timer(t)
16 uloop.timer(function() print("2000 ms timer run"); end, 2000)
19 uloop.timer(function() print("3000 ms timer run"); end, 3000):cancel()
23 print("Process 1 completed")
28 print("Process 2 completed")
34 uloop.process("uloop_pid_test.sh", {"foo", "bar"}, {"PROCESS=1"}, p1)
39 uloop.process("uloop_pid_test.sh", {"foo", "bar"}, {"PROCESS=2"}, p2)