Created
July 23, 2025 17:41
-
-
Save fogus/c081a5b6438a55d58482eca79f83dce6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn dynamic-require [& args] | |
(let [p (promise) | |
n *ns*] | |
(.start | |
(Thread. | |
(fn [] (deliver p (binding [*ns* n] (apply require args)))))) | |
@p)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment