Skip to content

Commit 484b7f5

Browse files
committed
Mark invoke under :clj conditional
1 parent bee5836 commit 484b7f5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/promesa/exec.cljc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -384,12 +384,13 @@
384384
([scheduler ms f]
385385
(pt/-schedule! (resolve-scheduler scheduler) ms f)))
386386

387-
(defn invoke!
388-
"Invoke a function to be executed in the provided executor
387+
#?(:clj
388+
(defn invoke!
389+
"Invoke a function to be executed in the provided executor
389390
or the default one, and waits for the result. Useful for using
390391
in virtual threads."
391-
([f] (pt/-await! (submit! f)))
392-
([executor f] (pt/-await! (submit! executor f))))
392+
([f] (pt/-await! (submit! f)))
393+
([executor f] (pt/-await! (submit! executor f)))))
393394

394395
(defn- rejected
395396
[v]

0 commit comments

Comments
 (0)