doc string edits
This commit is contained in:
parent
ffa676744d
commit
aedafd1ac9
|
@ -185,11 +185,10 @@
|
||||||
;;
|
;;
|
||||||
|
|
||||||
(defn dispatch
|
(defn dispatch
|
||||||
"Send an event to be processed by the registered handler.
|
"Queue an event to be processed by the registered handler.
|
||||||
|
|
||||||
Usage example:
|
Usage example:
|
||||||
(dispatch [:delete-item 42])
|
(dispatch [:delete-item 42])"
|
||||||
"
|
|
||||||
[event-v]
|
[event-v]
|
||||||
(if (nil? event-v)
|
(if (nil? event-v)
|
||||||
(error "re-frame: \"dispatch\" is ignoring a nil event.")
|
(error "re-frame: \"dispatch\" is ignoring a nil event.")
|
||||||
|
@ -198,8 +197,9 @@
|
||||||
|
|
||||||
|
|
||||||
(defn dispatch-sync
|
(defn dispatch-sync
|
||||||
"Send an event to be processed by the registered handler, but avoid the async-inducing
|
"Send an event to be processed by the registered handler
|
||||||
use of core.async/chan.
|
immediately. Note: dispatch-sync may not be called while another
|
||||||
|
event is being handled.
|
||||||
|
|
||||||
Usage example:
|
Usage example:
|
||||||
(dispatch-sync [:delete-item 42])"
|
(dispatch-sync [:delete-item 42])"
|
||||||
|
|
Loading…
Reference in New Issue