aboutsummaryrefslogtreecommitdiffstats
path: root/util/async.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2023-04-01 11:56:38 +0100
committerMatthew Wild <mwild1@gmail.com>2023-04-01 11:56:38 +0100
commit5ce1fe2603abf0e49b396a34bfb3b11a9ccd2e27 (patch)
tree191c91c841e8ca2de123d6604ad8faef85dc0f64 /util/async.lua
parent13084baa387df6f72aa5088e8f3b98aac869ff23 (diff)
downloadprosody-5ce1fe2603abf0e49b396a34bfb3b11a9ccd2e27.tar.gz
prosody-5ce1fe2603abf0e49b396a34bfb3b11a9ccd2e27.zip
util.startup: Add prosody.started promise to easily execute code after startup
To avoid a race where server-started fires before the promise function body is run (on next tick), I moved server-started to fire on the next tick, which seems sensible anyway. Errors are logged, I'm not sure if we ought to be doing something more here. I'm sure we'll find out.
Diffstat (limited to 'util/async.lua')
0 files changed, 0 insertions, 0 deletions