This commit is contained in:
Michiel Borkent 2025-04-26 10:35:28 +02:00
parent 22d19384e9
commit d92807493f

View file

@ -247,4 +247,8 @@
(is (= 3 (bb nil "(import '(java.util.concurrent Executors ExecutorService))
(let [fut (.submit ^ExecutorService (Executors/newCachedThreadPool)
^Callable (fn [] 3))]
(.get fut))"))))
(.get fut))")))
(is (nil? (bb nil "(import '(java.util.concurrent Executors ExecutorService))
(let [fut (.submit ^ExecutorService (Executors/newCachedThreadPool)
^Runnable (fn [] 3))]
(.get fut))"))))