kendru / learn-cljs

Source code for Learn ClojureScript
62 stars 26 forks source link

Update lesson-25-intro-to-core-async.md #55

Closed iarenaza closed 2 years ago

iarenaza commented 3 years ago

alts! takes a vector of channels as its first argument. The time we use alts! in the Detecting Key Chords example the syntax is right. This time we specify the channels as separate arguments. Which means the second channel is interpreted as an option to alts! and we get a very puzzling error message.

kendru commented 2 years ago

Merged! Thank you for the PR.