Skip to content

Commit 5d0ddc2

Browse files
authored
Merge pull request #29 from pmonks/dev
Release 2.0.256
2 parents 2e305cb + 9c71e4c commit 5d0ddc2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/progress/determinate.clj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,10 @@
262262
screen after it finishes (vs erasing it). Optional, default:
263263
`false` (erase it)
264264
* `:counter?` - whether to display a counter to the right of the progress
265-
indicator. Optional, default: `true` (display a counter)"
265+
indicator. Optional, default: `true` (display a counter)
266+
* `:redraw-rate` - how many times per second `a` will be checked for changes,
267+
and the progress indicator redrawn if the value of `a` has
268+
changed. Optional, default `10`"
266269
[a & body]
267270
(if (= :opts (first body))
268271
`(animatef! ~a ~(second body) (fn [] ~@(rest (rest body))))

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)