]> git.lizzy.rs Git - lua_async.git/blob - init.lua
Fix some small mistakes in the documentation of clearImmediate
[lua_async.git] / init.lua
1 lua_async = {}
2
3 function lua_async.step(dtime)
4         -- timers phase
5         lua_async.timeouts.step(dtime)
6         lua_async.intervals.step(dtime)
7
8         -- pending callbacks phase is done by minetest
9
10         -- idle & prepare phase are obsolete
11
12         -- poll phase is obsolete
13
14         -- check phase
15         lua_async.immediates.step(dtime)
16
17         -- close phase is obsolete
18 end
19
20 return function(path)
21         for _, f in ipairs {
22                 "timeouts",
23                 "intervals",
24                 "immediates",
25                 "promises",
26                 "async_await",
27                 "util",
28                 "limiting",
29         } do
30                 dofile(path .. f .. ".lua")
31         end
32 end