[docs]: adding 0.1.5 build status
This commit is contained in:
parent
1c970e152a
commit
865c4f278b
1 changed files with 6 additions and 4 deletions
10
README.md
10
README.md
|
|
@ -7,6 +7,7 @@ _**Alan J. Perlis** from [Structure and Interpretation of Computer Programs](htt
|
||||||
module | branch | status
|
module | branch | status
|
||||||
----------|----------|----------
|
----------|----------|----------
|
||||||
mount | `master` | [](https://circleci.com/gh/tolitius/mount/tree/master)
|
mount | `master` | [](https://circleci.com/gh/tolitius/mount/tree/master)
|
||||||
|
mount | `0.1.5` | [](https://circleci.com/gh/tolitius/mount/tree/0.1.5)
|
||||||
|
|
||||||
[](http://clojars.org/mount)
|
[](http://clojars.org/mount)
|
||||||
|
|
||||||
|
|
@ -18,6 +19,7 @@ _**Alan J. Perlis** from [Structure and Interpretation of Computer Programs](htt
|
||||||
- [Differences from Component](#differences-from-component)
|
- [Differences from Component](#differences-from-component)
|
||||||
- [How](#how)
|
- [How](#how)
|
||||||
- [Creating State](#creating-state)
|
- [Creating State](#creating-state)
|
||||||
|
- [Value of Values](#value-of-values)
|
||||||
- [Using State](#using-state)
|
- [Using State](#using-state)
|
||||||
- [Dependencies](#dependencies)
|
- [Dependencies](#dependencies)
|
||||||
- [Talking States](#talking-states)
|
- [Talking States](#talking-states)
|
||||||
|
|
@ -103,7 +105,7 @@ dev=> conn
|
||||||
|
|
||||||
#### Value of values
|
#### Value of values
|
||||||
|
|
||||||
Lifecycle functions start/stop/suspend/resume can take both functions and values. This is valuable and also works:
|
Lifecycle functions start/stop/suspend/resume can take both functions and values. This is "valuable" and also works:
|
||||||
|
|
||||||
```clojure
|
```clojure
|
||||||
(mount/defstate answer-to-the-ultimate-question-of-life-the-universe-and-everything :start 42)
|
(mount/defstate answer-to-the-ultimate-question-of-life-the-universe-and-everything :start 42)
|
||||||
|
|
@ -318,9 +320,9 @@ and some other use cases.
|
||||||
In additiong to `start` / `stop` functions, a state can also have `resume` and, if needed, `suspend` ones:
|
In additiong to `start` / `stop` functions, a state can also have `resume` and, if needed, `suspend` ones:
|
||||||
|
|
||||||
```clojure
|
```clojure
|
||||||
(defstate web-server :start #(start-server ...)
|
(defstate web-server :start start-server
|
||||||
:resume #(resume-server ...)
|
:resume resume-server
|
||||||
:stop #(stop-server ...))
|
:stop stop-server)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue