aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorire <refsdal.ivar@gmail.com>2025-05-21 13:59:55 +0200
committerire <refsdal.ivar@gmail.com>2025-05-21 13:59:55 +0200
commit22ca1bb29111f9a0246c54e7f81806794198c25f (patch)
tree1b1f8e47222f6bd0da07c038095ce0faeffa691a
parentUpdate .gitignore (diff)
downloadfiinha-22ca1bb29111f9a0246c54e7f81806794198c25f.tar.gz
fiinha-22ca1bb29111f9a0246c54e7f81806794198c25f.tar.xz
Doc #7
-rw-r--r--README.md3
-rw-r--r--src/com/github/ivarref/yoltq.clj3
2 files changed, 5 insertions, 1 deletions
diff --git a/README.md b/README.md
index 836ed49..0635d5f 100644
--- a/README.md
+++ b/README.md
@@ -471,6 +471,9 @@ Added multicast support for `datomic.api/tx-report-queue`:
(println "Processing q-item" q-item)
(recur))))))
+; The default value for `send-end-token?` is `false`, i.e. the behaviour will be
+; identical to that of datomic.api/tx-report-queue.
+
@(d/transact conn [{:db/doc "new-data"}])
; Stop the queue:
diff --git a/src/com/github/ivarref/yoltq.clj b/src/com/github/ivarref/yoltq.clj
index 45f2051..0f63e25 100644
--- a/src/com/github/ivarref/yoltq.clj
+++ b/src/com/github/ivarref/yoltq.clj
@@ -390,7 +390,8 @@
Repeated calls using the same `conn` and `id` returns the same queue.
The optional third parameter, `send-end-token?`, if set to `true`, instructs the multicaster thread
- to send `:end` if the queue is stopped. The default value is `false`.
+ to send `:end` if the queue is stopped.
+ The default value for `send-end-token?` is `false`.
A queue may be stopped using `stop-multicaster-id!`, `stop-multicaster!` or `stop-all-multicasters!`.