From 8b71fac817f2743e47e19e0989dc047ff1f4f28d Mon Sep 17 00:00:00 2001 From: Robert Walker Date: Fri, 4 Dec 2020 10:27:48 +0100 Subject: [PATCH] Fixed a formatting issue, the '@scala[]' marker, does not seem to handle CRLF (#29857) --- akka-docs/src/main/paradox/typed/fsm.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/akka-docs/src/main/paradox/typed/fsm.md b/akka-docs/src/main/paradox/typed/fsm.md index cc954e223d..5901c23251 100644 --- a/akka-docs/src/main/paradox/typed/fsm.md +++ b/akka-docs/src/main/paradox/typed/fsm.md @@ -43,7 +43,7 @@ Scala Java : @@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, including the hint that the message has not been handled. There are two related behaviors: @@ -53,7 +53,7 @@ There are two related behaviors: Unhandled messages are still logged with this behavior. - 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) -] +@@@ To set state timeouts use `Behaviors.withTimers` along with a `startSingleTimer`.