Tapahtumaohjattu ohjelmointi
From Wikipedia, the free encyclopedia
From Wikipedia, the free encyclopedia
Tapahtumaohjattu ohjelmointi on eräs ohjelmointiparadigma.
Tapahtumaohjatussa ohjelmoinnissa ohjelma käynnistymisensä jälkeen odottaa tapahtumia (event), jotka kertovat mitä pitää tehdä ja käsittelee ne.[1]
Tapahtumankäsittelijä (myös tapahtumasilmukka, engl. event loop) on tyypillisesti ikuinen silmukka. Tapahtumat tulevat ohjelman ulkopuolelta, kuten käyttäjän toimista tai jonkinlaisen hakupyynnön tuloksena. Tapahtumankäsittelijä reagoi tapahtumiin, käsittelee ne ja jatkaa tapahtumien odottamista. Ohjelma on myös mahdollista lopettaa jonkin tapahtuman seurauksena.[1]
Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.