summaryrefslogtreecommitdiff
path: root/src/main/clojure/org/gnu/clojure/gnunet/util.clj
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/clojure/org/gnu/clojure/gnunet/util.clj')
-rw-r--r--src/main/clojure/org/gnu/clojure/gnunet/util.clj5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/clojure/org/gnu/clojure/gnunet/util.clj b/src/main/clojure/org/gnu/clojure/gnunet/util.clj
index 9914dfd..3b4d5ff 100644
--- a/src/main/clojure/org/gnu/clojure/gnunet/util.clj
+++ b/src/main/clojure/org/gnu/clojure/gnunet/util.clj
@@ -50,3 +50,8 @@
(assoc _map _key
(conj old-val (second kv)))))
_map (partition 2 kvs)))
+
+(defn do-callbacks!
+ [callback-seq & args]
+ (doseq [callback! callback-seq]
+ (apply callback! args)))