We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bee5836 commit 484b7f5Copy full SHA for 484b7f5
src/promesa/exec.cljc
@@ -384,12 +384,13 @@
384
([scheduler ms f]
385
(pt/-schedule! (resolve-scheduler scheduler) ms f)))
386
387
-(defn invoke!
388
- "Invoke a function to be executed in the provided executor
+#?(:clj
+ (defn invoke!
389
+ "Invoke a function to be executed in the provided executor
390
or the default one, and waits for the result. Useful for using
391
in virtual threads."
- ([f] (pt/-await! (submit! f)))
392
- ([executor f] (pt/-await! (submit! executor f))))
+ ([f] (pt/-await! (submit! f)))
393
+ ([executor f] (pt/-await! (submit! executor f)))))
394
395
(defn- rejected
396
[v]
0 commit comments