-
Notifications
You must be signed in to change notification settings - Fork 43
Clarify trigger event context #2965
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
doc/book/box/triggers.rst
Outdated
from it (such as `os.exit() <http://www.lua.org/manual/5.1/manual.html#pdf-os.exit>`_ | ||
or :doc:`/reference/reference_lua/box_txn_management/rollback`), the behavior | ||
is undefined. | ||
* Triggers must work within the event context. This means that their functions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
their functions
Я думаю правильнее говорить тело функции и/или реализация: "... their implementation should not...". Или "This means that function implementing trigger".
event context
Я так понимаю основной вопрос был здесь: не совсем понятно что это. Я бы написал, что тут не стоит изменять глобальное состояние программы, то есть работать только с переменными, которые передаются в сам триггер.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for clarification. Rephrased the text.
Вроде ок, но я бы еще кому-то дал почитать |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Language-related suggestions.
Co-authored-by: Dia Patience Daur <[email protected]>
Rephrase paragraph about event context in Triggers for better understanding (feedback in #2538).
Resolves #2538