To be honest, I had never used it in 1C before, since the work was almost always carried out with versions below 8.3.18, and if you look at the BSP code, even the latest (at the time of writing this article) this mechanism is rarely used. What exactly caught my attention in the "Async-Wait" mechanism If you are an experienced 1C developer, I am sure you have seen the times when using synchronous methods and modal windows was common practice, no one saw any problems with it, and at one point 1C declared that synchronous methods are bad, suggesting to use asynchronous analogs instead of regular synchronous methods, in the form of .
This example shows how much mexico phone number list the complexity of code perception has increased, and imagine what happened to large modules? They turned into hard-to-read sets of notification descriptions (for interest, look at the client part of RMK in typical configurations). Definitely, the notification description tool is very useful, as in other languages (for example, in JavaScript - callback), but the obligation that 1C set for developers forced the modules to be made much more complex. And in version 8.3.18, when everyone has long been accustomed to the "callback hell", a new mechanism "Async-Wait" comes into play, reduce the cognitive load of the reader, for example.
.. КонецЕсли; КонецПроцедуры Why are there such drastic changes in requirements? The main reason is the 1C Web Client. The browser is a modern tool used by a large number of owners of electronic gadgets, so 1C must work in it, but browsers dictate their standards to which it is necessary to adapt, specifically in this situation, all issues related to modal windows and synchronous code are directly related to the prohibitions on the use of such tools inside modern browsers. Do these constructs allow code to be executed simultaneously (in multiple threads)? Let's start with the definition. Multithreading is a concept where a program can execute multiple threads of code simultaneously.
Which is designed to return clear, simple readability of the code
-
- Posts: 129
- Joined: Tue Jan 07, 2025 4:34 am