Skip to content

Commit

Permalink
Mark invoke under :clj conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
niwinz committed Dec 5, 2023
1 parent bee5836 commit 484b7f5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/promesa/exec.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -384,12 +384,13 @@
([scheduler ms f]
(pt/-schedule! (resolve-scheduler scheduler) ms f)))

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

(defn- rejected
[v]
Expand Down

0 comments on commit 484b7f5

Please sign in to comment.