| IActorContextBecomeStacked Method |
Changes the actor's behavior and replaces the current receive handler with the specified handler.
The current handler is stored on a stack, and you can revert to it by calling
UnbecomeStackedRemarks Please note, that in order to not leak memory, make sure every call to
BecomeStacked(Receive)
is matched with a call to
UnbecomeStacked.
Namespace:
Akka.Actor
Assembly:
Akka (in Akka.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax void BecomeStacked(
Receive receive
)
abstract BecomeStacked :
receive : Receive -> unit
Parameters
- receive
- Type: Akka.ActorReceive
The new message handler.
See Also