Documentation
Registers a new callback.
LAMBDA when the request arrives LAMBDA will be passed the
value (a string) associated with the input. If NAME is not
provided, or NIL, a random name will be generated.
Returns NAME, or the random name if NAME was NIL.
Source
(defun make-new-callback (lambda &key (frame (context.current-frame *context*))
(name nil))
"Registers a new callback.
LAMBDA when the request arrives LAMBDA will be passed the
value (a string) associated with the input. If NAME is not
provided, or NIL, a random name will be generated.
Returns NAME, or the random name if NAME was NIL."
(let ((effective-name (or name
(new-random-key (frame.callbacks frame)
+action-id-length+))))
(make-new-callback-using-class frame lambda effective-name)
effective-name))Source Context