mirror of
https://github.com/taoensso/telemere.git
synced 2025-12-16 17:41:12 +00:00
[new] Extend IIFE-wrap to Clj
The perf hit is negligible, and we can always re-evaluate this choice again later. In the meantime, let's err on the side of greatest compatibility.
This commit is contained in:
parent
f7a56631c5
commit
d0ad99d528
1 changed files with 3 additions and 2 deletions
|
|
@ -777,8 +777,9 @@
|
|||
( ~'__run-result signal#)
|
||||
true))))]
|
||||
|
||||
(if cljs?
|
||||
`((fn [] ~final-form)) ; IIFE wrap for use in `go` and other IOC-style bodies
|
||||
(if-let [iife-wrap? true #_cljs?]
|
||||
;; Small perf hit to improve compatibility within `go` and other IOC-style bodies
|
||||
`((fn [] ~final-form))
|
||||
(do final-form)))))))
|
||||
|
||||
(comment
|
||||
|
|
|
|||
Loading…
Reference in a new issue