Software /
code /
prosody
File
.editorconfig @ 13015:46c05c2e34f7
moduleapi: Add module:once() to execute a function after module load/startup
It is a common pattern for modules to do something like check for
prosody.start_time, and execute code immediately if it is present, or wait for
the server-started event if it isn't yet. For example, this allows you to run
code after all other modules/hosts have been loaded, that are going to be
loaded.
Such code can now be replaced with a simple call to this method.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 01 Apr 2023 11:59:50 +0100 |
parent | 11706:56feb0cf7052 |
child | 13191:1266efb7101c |
line wrap: on
line source
root = true [*] end_of_line = lf indent_style = tab insert_final_newline = true trim_trailing_whitespace = true [CHANGES] indent_size = 4 indent_style = space [configure] indent_size = 3 indent_style = space [**.xml] indent_size = 2 indent_style = space