=doc #3689 Don't rewrite arrows in doc and samples

This commit is contained in:
Patrik Nordwall 2013-12-03 16:34:26 +01:00
parent 37f8f2831b
commit 5a019c0a7a
61 changed files with 531 additions and 517 deletions

View file

@ -26,11 +26,11 @@ object SchedulerPatternSpec {
override def postStop() = tick.cancel()
def receive = {
case "tick"
case "tick" =>
// do something useful here
//#schedule-constructor
target ! "tick"
case "restart"
case "restart" =>
throw new ArithmeticException
//#schedule-constructor
}
@ -53,13 +53,13 @@ object SchedulerPatternSpec {
override def postRestart(reason: Throwable) = {}
def receive = {
case "tick"
case "tick" =>
// send another periodic tick after the specified delay
system.scheduler.scheduleOnce(1000 millis, self, "tick")
// do something useful here
//#schedule-receive
target ! "tick"
case "restart"
case "restart" =>
throw new ArithmeticException
//#schedule-receive
}