Skip to content

Commit 221a128

Browse files
committed
Up version to 0.17.0
1 parent f480336 commit 221a128

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

buildSrc/src/main/kotlin/ru/nsk/Versions.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
object Versions {
22
// library
33
const val libraryGroup = "ru.nsk"
4-
const val libraryVersion = "0.16.0"
4+
const val libraryVersion = "0.17.0"
55

66
// tools
77
const val kotlin = "1.7.10"

docs/index.md

+9-7
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,11 @@ Local transition doesn't cause exit and entry to target state if target is a sup
199199
state.
200200

201201
Use `type` argument or property of transition builder functions to set transition type:
202+
202203
```kotlin
203204
transition<SwitchEvent> {
204-
type = EXTERNAL
205-
targetState = state2
205+
type = EXTERNAL
206+
targetState = state2
206207
}
207208
```
208209

@@ -407,12 +408,13 @@ Notifications about finishing are available in two forms:
407408
}
408409
}
409410
```
410-
411+
411412
Transition for `FinishedEvent` is detected by the library and matched by special kind of `EventMatcher`,
412413
so such transition is triggered only for `FinishedEvent` that corresponds to this state.
413414
`FinishingEvent` generated by finishing of another state will not trigger such transition.
414415

415-
If `FinalState` that triggered `FinishedEvent` is also a `DataState` then its data field will be copied into `FinishedEvent`.
416+
If `FinalState` that triggered `FinishedEvent` is also a `DataState` then its `data` field will be copied
417+
into `FinishedEvent`.
416418
See [transition on FinishedEvent sample](https://github.com/nsk90/kstatemachine/tree/master/samples/src/main/kotlin/ru/nsk/samples/FinishedEventSample.kt)
417419

418420
## Nested states
@@ -500,8 +502,8 @@ createStateMachine(childMode = ChildMode.PARALLEL) {
500502
}
501503
```
502504

503-
There is no way to process multiple transitions for one event by using parallel states, only one transition may be
504-
triggered for each event.
505+
Currently, there is no way to process multiple transitions for one event by using parallel states, only one transition
506+
may be triggered for each event.
505507

506508
## Pseudo states
507509

@@ -652,7 +654,7 @@ leads to undefined machine state and mixed notifications._
652654
653655
Event though `KStateMachine` assumes that listener callbacks should not throw exceptions, it may happen in practice.
654656
If your app code throws exceptions in a listener callbacks library catches them, completes transition successfully and
655-
passes the first accured exception to `listenerExceptionHandler`. It simply rethrows exception by default, but you may
657+
passes the first occurred exception to `listenerExceptionHandler`. It simply rethrows exception by default, but you may
656658
want to mute them with custom handler for example.
657659
658660
### Other exceptions

0 commit comments

Comments
 (0)