Материал из Module developer
Перейти к: навигация, поиск

As in the first example, the function content is the same but the shell is changed. Now the function is unnamed and it will not be executed at once. The function is subcribed to the launch event and it will be executed once, the data will also be wrapped in. The first example (1) starts the function before this event and in some cases it can disrupt work. If you create a driver instance, it is recommended to use the second variant (2).