Sündmustepõhise
Sündmustepõhise, often translated as event-driven, refers to a programming paradigm or architectural style where the flow of the program is determined by occurrences of events. An event can be any significant change in state or a user action, such as a mouse click, a key press, a message arriving, or a sensor reading. When an event occurs, the system responds by executing a specific piece of code, known as an event handler or listener.
This approach contrasts with traditional procedural programming where the program executes a sequence of instructions in
The core components of an event-driven system typically include an event source, which generates events, an