Fixed a formatting issue, the '@scala[]' marker, does not seem to handle CRLF (#29857)

This commit is contained in:
Robert Walker 2020-12-04 10:27:48 +01:00 committed by GitHub
parent 021e7d58bc
commit 8b71fac817
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,7 +43,7 @@ Scala
Java Java
: @@snip [FSMSocTest.java](/akka-actor-typed-tests/src/test/java/jdocs/akka/typed/FSMDocTest.java) { #simple-state} : @@snip [FSMSocTest.java](/akka-actor-typed-tests/src/test/java/jdocs/akka/typed/FSMDocTest.java) { #simple-state}
@scala[ @@@ div { .group-scala }
The method `idle` above makes use of `Behaviors.unhandled` which advises the system to reuse the previous behavior, The method `idle` above makes use of `Behaviors.unhandled` which advises the system to reuse the previous behavior,
including the hint that the message has not been handled. including the hint that the message has not been handled.
There are two related behaviors: There are two related behaviors:
@ -53,7 +53,7 @@ There are two related behaviors:
Unhandled messages are still logged with this behavior. Unhandled messages are still logged with this behavior.
- return `Behaviors.ignore` as next behavior in case you don't care about unhandled messages. - return `Behaviors.ignore` as next behavior in case you don't care about unhandled messages.
All messages sent to an actor with such a behavior are simply dropped and ignored (without logging) All messages sent to an actor with such a behavior are simply dropped and ignored (without logging)
] @@@
To set state timeouts use `Behaviors.withTimers` along with a `startSingleTimer`. To set state timeouts use `Behaviors.withTimers` along with a `startSingleTimer`.