Closed dvv closed 3 years ago
Proposed changes allow for the following without busy loops:
-- client local client = mqtt.client { connector = require("mqtt.luasocket-copas"), ... } -- client setup ... -- client thread copas.addthread(function() while true do client:_ioloop_iteration() end end) -- custom logic copas.addthread(function() while true do copas.sleep(1) print("TICK!") end end) copas.loop()
continue in pull request #27
Proposed changes allow for the following without busy loops: