mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-06 10:40:45 -08:00
Mention the :one-time key for events
This commit is contained in:
parent
504fa56111
commit
4eba57ec56
1 changed files with 4 additions and 1 deletions
|
|
@ -23,7 +23,10 @@
|
||||||
;;; Running this version of the last tutorial and clicking quickly on the (click me!)
|
;;; Running this version of the last tutorial and clicking quickly on the (click me!)
|
||||||
;;; will demonstrate an important aspect of CLOG, events can happen in _parallel_.
|
;;; will demonstrate an important aspect of CLOG, events can happen in _parallel_.
|
||||||
;;; This means that appropriate precautions to thread protect data should be taken
|
;;; This means that appropriate precautions to thread protect data should be taken
|
||||||
;;; and that events do not wait for previous event handlers to complete.
|
;;; and that events do not wait for previous event handlers to complete. One simple
|
||||||
|
;;; way to avoid issues is to use the key :one-time t on the set-on-click or other
|
||||||
|
;;; event, this will turn off the event immediately when the user clicks and can then
|
||||||
|
;;; set the even again when done handling the event if want to again accept the event.
|
||||||
(defun start-tutorial ()
|
(defun start-tutorial ()
|
||||||
"Start turtorial."
|
"Start turtorial."
|
||||||
(initialize #'on-new-window)
|
(initialize #'on-new-window)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue