#gmsv_mongo Documentation
1 messages · Page 1 of 1 (latest)
ouch
seems pretty useless without async operations yeah
Im working on it :)
i beg you make it right, use coroutines
(I'll try my best)
that async?
yea
are you providing a coroutine-compatible api though
function sleep(wait)
local t = coroutine.running()
timer.Simple(wait, function() coroutine.resume(t) end)
return coroutine.yield()
end
coroutine.wrap(function()
print("at launch")
sleep(1)
print("in a second")
end)()
basically this
abstraction of them callbacks that allows you to do things without building pyramids
Not yet, but might be a good thing to add
it is a very good one, just make it a separate lua-based api that you can access via i.e. require "mongo-coro"
