Thanks OrigEdit for pointing out how serious hangs can be.
Many thanks to wryl and the folks at #Nova for teaching me about inversion of control. There doesn't have to be a single event loop.
I7DLG3HYD2X4RPOYI5VFMBZO6HO6U32E3U6ZFE6QMBSH37QYANSQC
local response
repeat
while true do
love.timer.sleep(0.01)
local response = live.receive_from_app()
if response then
return response
end
love.graphics.origin()
love.graphics.clear(0,0,0)
love.graphics.setColor(1,1,1)
love.graphics.print('Waiting for app to respond...', 30,30)
love.graphics.present()
if love.event then
love.event.pump()
for name, a,b,c,d,e,f in love.event.poll() do
if name == 'quit' then
os.exit(1)
end
end
end