add spawn/stateless to FAQ
This commit is contained in:
parent
bd328012a9
commit
4cb6f5cf26
3
FAQ.md
3
FAQ.md
|
@ -64,6 +64,9 @@
|
||||||
(spawn (lambda (event state) ... (transition state' (list action ...)))
|
(spawn (lambda (event state) ... (transition state' (list action ...)))
|
||||||
initial-state
|
initial-state
|
||||||
initial-action ...)
|
initial-action ...)
|
||||||
|
;; stateless actor
|
||||||
|
(spawn/stateless (lambda (event) ... (list action ...))
|
||||||
|
initial-action ...)
|
||||||
;; network of actors
|
;; network of actors
|
||||||
(spawn-world boot-action ...)
|
(spawn-world boot-action ...)
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue