Package: glib
Callback glib:source-func
SyntaxArgumentsDetails Specifies the type of callback function passed to the g:timeout-add, and g:idle-add functions. Examples(let ((counter 0) (max 10)) (defun timeout-callback (loop) (incf counter) (if (>= counter max) (progn ;; Reset the counter (setf counter 0) ;; Stop the main loop from running (g:main-loop-quit loop) ;; Stop the source g:+source-remove+) ;; Continue the source g:+source-continue+))) | See also |
2024-11-6