Skip to content

Commit c0ebf7d

Browse files
committed
📚 Use more descriptive namespace aliases in demo
1 parent 42d82be commit c0ebf7d

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,23 +59,23 @@ Doesn't work properly, for the same reason the `clj` command line doesn't work p
5959
```clojure
6060
;; Indeterminate Task (aka "spinner")
6161

62-
(require '[progress.indeterminate :as pi])
62+
(require '[progress.indeterminate :as spinner])
6363

6464
(print "Something uncountably slow is happening... ")
65-
(pi/animate! :opts {:frames (:clocks pi/styles)}
65+
(spinner/animate! :opts {:frames (:clocks spinner/styles)}
6666
(Thread/sleep 5000))
6767
(println)
6868

6969

7070
;; Determinate Task (aka "progress bar")
7171

72-
(require '[progress.determinate :as pd])
72+
(require '[progress.determinate :as progress-bar])
7373

7474
(println "And now something countably slow is happening...")
7575
(let [a (atom 0)]
76-
(pd/animate! a :opts {:total 1000000
77-
:redraw-rate 60 ; Use 60 fps for the demo
78-
:style (:coloured-ascii-boxes pd/styles)} ; :emoji-boxes is also fun to try
76+
(progress-bar/animate! a :opts {:total 1000000
77+
:redraw-rate 60 ; Use 60 fps for the demo
78+
:style (:coloured-ascii-boxes progress-bar/styles)} ; :emoji-boxes is also fun to try
7979
(run! (fn [_] (Thread/sleep 0 10) (swap! a inc)) (range 1000000)))) ; Count up to a million, slowly
8080
(println)
8181
```

demo.clj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
;; Indeterminate Task (aka "spinner")
22

3-
(require '[progress.indeterminate :as pi])
3+
(require '[progress.indeterminate :as spinner])
44

55
(print "Something uncountably slow is happening... ")
6-
(pi/animate! :opts {:frames (:clocks pi/styles)}
6+
(spinner/animate! :opts {:frames (:clocks spinner/styles)}
77
(Thread/sleep 5000))
88
(println)
99

1010

1111
;; Determinate Task (aka "progress bar")
1212

13-
(require '[progress.determinate :as pd])
13+
(require '[progress.determinate :as progress-bar])
1414

1515
(println "And now something countably slow is happening...")
1616
(let [a (atom 0)]
17-
(pd/animate! a :opts {:total 1000000
18-
:redraw-rate 60 ; Use 60 fps for the demo
19-
:style (:coloured-ascii-boxes pd/styles)} ; :emoji-boxes is also fun to try
17+
(progress-bar/animate! a :opts {:total 1000000
18+
:redraw-rate 60 ; Use 60 fps for the demo
19+
:style (:coloured-ascii-boxes progress-bar/styles)} ; :emoji-boxes is also fun to try
2020
(run! (fn [_] (Thread/sleep 0 10) (swap! a inc)) (range 1000000)))) ; Count up to a million, slowly
2121
(println)

0 commit comments

Comments
 (0)