Skip to content

Commit 9c71e4c

Browse files
committed
🆕 Use virtual threads when available
1 parent 6e341f7 commit 9c71e4c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/progress/indeterminate.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
progress of a long-running task cannot be determined."
1414
(:require [clojure.string :as s]
1515
[jansi-clj.core :as jansi]
16+
[embroidery.api :as e]
1617
[progress.ansi :as ansi]
1718
[progress.3rd-party :as tp])
1819
(:refer-clojure :exclude [print]))
@@ -146,7 +147,7 @@
146147
(throw (java.lang.IllegalStateException. "Progress indicator is already active.")))
147148
(flush) ; Flush any residual I/O to stdout before we start animating
148149
(reset! msgs nil)
149-
(reset! fut (future (indeterminate-progress-indicator opts)))
150+
(reset! fut (e/future* (indeterminate-progress-indicator opts)))
150151
nil))
151152

152153
(defn ^:no-doc stop!

0 commit comments

Comments
 (0)