AndThen
AndThen copied to clipboard
Lua 5.2 compatibility
In Lua 5.2 "Modules are not expected to set global variables." It would be nice if AndThen would adhere to that.
$ lua5.2 -e 'print(require("AndThen"))'
true
Modules are expected to be used like this:
local promise = require("AndThen")
promise().and_then(...)