Skip to content

Commit

Permalink
🆕 More use of virtual threads (on JVMs that support them)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmonks committed Feb 13, 2024
1 parent 13f19fd commit 34b0719
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/for_science/commands.clj
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
(:require [clojure.string :as s]
[clojure.tools.logging :as log]
[sci.core :as sci]
[embroidery.api :as e]
[discljord.formatting :as df]
[discljord-utils.message-util :as mu]
[bot.commands :as cmd]
Expand All @@ -43,7 +44,7 @@
(when code
(log/debug "Evaluating Clojure forms:" code)
(let [result (try
(let [f (future
(let [f (e/future*
(try
(let [sw (java.io.StringWriter.)
result (sci/binding [sci/out sw
Expand Down

0 comments on commit 34b0719

Please sign in to comment.