fix readme
This commit is contained in:
parent
2ad806a8fc
commit
b7255523c2
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue