File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 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))))
Original file line number Diff line number Diff line change 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]))
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!
You can’t perform that action at this time.
0 commit comments