Skip to content

Commit f00df07

Browse files
committed
add locking macro
1 parent cee4f53 commit f00df07

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/clojure/cljs/core.cljc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2680,6 +2680,10 @@
26802680
[vol f & args]
26812681
`(-vreset! ~vol (~f (-deref ~vol) ~@args)))
26822682

2683+
(core/defmacro locking
2684+
[x & forms]
2685+
`(do ~@forms))
2686+
26832687
;; INTERNAL - do not use, only for Node.js
26842688
(core/defmacro load-file* [f]
26852689
`(. js/goog (~'nodeGlobalRequire ~f)))

0 commit comments

Comments
 (0)