fix readme

This commit is contained in:
Jeremy Penner 2015-05-06 09:38:23 -04:00
parent 2ad806a8fc
commit b7255523c2

View file

@ -14,7 +14,7 @@ I want the ability to rewind time, hotload new code, then run time forward again
exav currently has one basic building block: the `proc` macro. The `proc` macro works very much like the `go` macro in core.async, except that instead of returning a channel, it returns a function, and instead of blocking on `>!` or `<!`, it blocks on calls to `wait`. The function returned by proc takes zero, one, or two arguments.
(let [p (proc (str "Hello, " (wait :name)))
(let [p (proc (str "Hello, " (wait :name)))
; calling a proc with no arguments starts the process
state (p)
@ -36,7 +36,7 @@ exav currently has one basic building block: the `proc` macro. The `proc` macro
; a proc can also be called with just one argument, which is the same as passing nil
; for the second argument
result3 (:result (p state)) ; => "Hello, "
])
])
`wait` always takes a single argument; a value that describes what the proc is waiting for.