Code Examples for

Actors in Scala

Return to chapter index

2 Messages All the Way Up

  • 2.1 Control flow and data flow
  • 2.2 Actors and messages
  • 2.3 Actor creation
  • 2.4 Actor events
  • 2.5 Asynchronous communication
  • 2.6 You've got mail: indeterminacy and the role of the arbiter
  • 2.7 Actor life cycle
  • 2.1 Control flow and data flow


    if (currentSpeed != desiredSpeed) changeSpeed(desiredSpeed - currentSpeed) else maintainSpeed()

    2.2 Actors and messages

    2.3 Actor creation

    2.4 Actor events

    2.5 Asynchronous communication

    2.6 You've got mail: indeterminacy and the role of the arbiter

    2.7 Actor life cycle

    For more information about Actors in Scala, please visit:

    http://www.artima.com/shop/actors_in_scala

    and:

    http://booksites.artima.com/actors_in_scala

    Copyright © 2011 Artima, Inc. All rights reserved.

    Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.