Add sleep() BiF.

Yes, really. :-) We've hit the need for this on occasion in very specific
settings and always worked around it via ugly nested loops or similars.
This has ample warning that folks normally won't want to use this.

Not sure that ZAM btest should baseline the number of BiFs.
This commit is contained in:
Christian Kreibich 2024-12-02 13:35:25 -08:00
parent ead6134501
commit e6d0c8aa04
6 changed files with 46 additions and 1 deletions

View file

@ -431,6 +431,7 @@ static std::unordered_map<std::string, unsigned int> func_attrs = {
{"skip_further_processing", ATTR_NO_SCRIPT_SIDE_EFFECTS},
{"skip_http_entity_data", ATTR_NO_SCRIPT_SIDE_EFFECTS},
{"skip_smtp_data", ATTR_NO_SCRIPT_SIDE_EFFECTS},
{"sleep", ATTR_NO_SCRIPT_SIDE_EFFECTS},
{"split_string", ATTR_FOLDABLE},
{"split_string1", ATTR_FOLDABLE},
{"split_string_all", ATTR_FOLDABLE},