Liking cljdoc? Tell your friends :D
Clojure only.

tuck.intercept


interceptcljmacro

(intercept e! & intercept-forms)

Return a new send function that wraps the given send function. The event types specified in intercept forms are intercepted and the their respective forms are run instead of sending the event. Events that have no intercept are sent unaltered. A final default interceptor may be specified with the type :default.

Return a new send function that wraps the given send function.
The event types specified in intercept forms are intercepted and
the their respective forms are run instead of sending the event.
Events that have no intercept are sent unaltered.
A final default interceptor may be specified with the type :default.
sourceraw docstring

send-tocljmacro

(send-to e! event)

Send to the given UI send function. Sends to captured send-functions must be done via this function when called in intercept handlers. This sets the binding of current-send-function properly so that it does not point to a wrapped function when calling send-async!.

Send to the given UI send function. Sends to captured send-functions must
be done via this function when called in intercept handlers. This sets the
binding of *current-send-function* properly so that it does not point to a
wrapped function when calling send-async!.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close