@@ -32,7 +32,7 @@ Some great further reading on the topic:
3232 - [ What color is your function] ( https://journal.stuffwithstuff.com/2015/02/01/what-color-is-your-function/ ) - A mental exploration of
3333 the leaking of the abstraction.
3434 - [ Async Rust Book Async Intro] ( https://rust-lang.github.io/async-book/01_getting_started/02_why_async.html ) - A
35- good explaination of why we want async. The rest of this book is fantastic in terms of
35+ good explanation of why we want async. The rest of this book is fantastic in terms of
3636 understanding how async execution works under the hood. In ` manifold ` and ` core.async `
3737 the JVM executor is mostly analogous to the rust's concept of the Executor. In a language like
3838 Rust, without a runtime, being explicit and "colorizing functions" makes sense, but with a
@@ -204,19 +204,19 @@ each fiber will have a timeout that starts from when the fiber was spawned.
204204 '[tick.alpha.api :as t]
205205 '[tapestry.core :refer [periodically parallelly asyncly]])
206206
207- ; ; tapestry.core/periodically behaves very similar to manfold 's built in periodically,
207+ ; ; tapestry.core/periodically behaves very similar to manifold 's built in periodically,
208208; ; but runs each task in a fiber. You can terminate it by closing the stream.
209209(let [count (atom 0 )
210- generator (periodically (t/new-duration 1 :seconds ) #(swap! count inc))]
210+ generator (periodically (t/new-duration 1 :seconds ) #(swap! count inc))]
211211 (->> generator
212212 (s/consume #(println " Count is now:" %)))
213213 (Thread/sleep 5000 )
214214 (s/close! generator))
215215
216- ; ; Also, `parallelly` and `asyncly` both suppport manifold streams, allowing you to describe parallel
216+ ; ; Also, `parallelly` and `asyncly` both support manifold streams, allowing you to describe parallel
217217; ; execution pipelines
218218(->> (s/stream )
219- (paralelly 5 some-operation)
219+ (parallelly 5 some-operation)
220220 (asyncly 5 some-other-operation)
221221 (s/consume #(println " Got Result" %)))
222222```
0 commit comments