(forward f from)
Apply a function to every element that goes into a channel.
(This is contramap for channels).
Apply a function to every element that goes into a channel. (This is contramap for channels).
(process-message message app)
Given a message, take the current app state and return the new one. In essense this is a reducing function.
Given a message, take the current app state and return the new one. In essense this is a reducing function.
(send! channel message)
Send information from the user to the message queue. The message must be a record which implements the Message protocol.
Send information from the user to the message queue. The message must be a record which implements the Message protocol.
(send-key! channel message-fn filter-fn)
Send information from the user to the message queue.
Similar to send-value!
, except the dom-event's which
property retrieves the keycode,
and an additional filter function can be supplied by the caller to control which keycodes
are sent on the queue.
The filterfn returns the keycode if it should be sent, or nil if not.
Send information from the user to the message queue. Similar to `send-value!`, except the dom-event's `which` property retrieves the keycode, and an additional filter function can be supplied by the caller to control which keycodes are sent on the queue. The filterfn returns the keycode if it should be sent, or nil if not.
(send-value! channel message-fn)
Send information from the user to the message queue.
Similar to send!
, except the message-fn will be called with the message's value first.
Send information from the user to the message queue. Similar to `send!`, except the message-fn will be called with the message's value first.
(start-message-loop! !app render-fn)
(start-message-loop! !app render-fn initial-channels)
(wrap f in)
Apply a function to every element that comes out of a channel.
(This is fmap for channels).
Apply a function to every element that comes out of a channel. (This is fmap for channels).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close