Created
October 21, 2014 01:57
-
-
Save jakecraige/3b49ca0fb2450523ba8c to your computer and use it in GitHub Desktop.
core-async, it's just like ES6 Generators!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(def db (pouch/create-db "todos")) | |
(go | |
(<! (pouch/put-doc db {:_id (now) :text "Todo 1"})) | |
(<! (pouch/put-doc db {:_id (now) :text "Todo 2"})) | |
(let [res (<! (pouch/all-docs db))] | |
(println res))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment