File tree Expand file tree Collapse file tree 4 files changed +7
-3
lines changed
Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,9 @@ From [`demo.clj`](https://github.com/pmonks/spinner/blob/dev/demo.clj):
7474
7575(println " And now something countably slow is happening..." )
7676(let [a (atom 0 )]
77- (pd/animate! a :opts {:total 1000000 :redraw-rate 60 :style (:emoji-boxes pd/styles)}
77+ (pd/animate! a :opts {:total 1000000
78+ :redraw-rate 60
79+ :style (:ascii-boxes pd/styles)} ; :emoji-boxes is also fun to try
7880 (run! (fn [_] (Thread/sleep 0 10 ) (swap! a inc)) (range 1000000 )))) ; Count up to a million, slowly
7981(println )
8082```
Original file line number Diff line number Diff line change 1414
1515(println " And now something countably slow is happening..." )
1616(let [a (atom 0 )]
17- (pd/animate! a :opts {:total 1000000 :redraw-rate 60 :style (:emoji-boxes pd/styles)}
17+ (pd/animate! a :opts {:total 1000000
18+ :redraw-rate 60
19+ :style (:ascii-boxes pd/styles)} ; :emoji-boxes is also fun to try
1820 (run! (fn [_] (Thread/sleep 0 10 ) (swap! a inc)) (range 1000000 )))) ; Count up to a million, slowly
1921(println )
20- (flush )
Original file line number Diff line number Diff line change @@ -5,3 +5,4 @@ Type "clojure -M demo.clj"
55Sleep 250ms
66Enter
77Wait@90s
8+ Sleep 50ms
You can’t perform that action at this time.
0 commit comments