rlua-async 0.5.0

Async support for rlua, via coroutines
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
function(ud)
    return function(...)
        ud:set_arg(...)
        while true do
            local t, ready = ud:poll()
            if ready then
                return table.unpack(t)
            else
                coroutine.yield()
            end
        end
    end
end