Copyright | (c) Anton Gushcha, 2015-2016 |
---|---|
License | BSD3 |
Maintainer | ncrashed@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Internal state of actor core module.
- data ActorState s = ActorState {
- actorBoxes :: !(HashMap (HashableTypeRep, Int) (Seq Dynamic, Seq Dynamic))
- actorNextId :: !(HashMap HashableTypeRep Int)
- actorNameMap :: !(HashMap String HashableTypeRep)
- actorNextState :: !s
- emptyActorState :: s -> ActorState s
- moveSendedMessages :: ActorState s -> ActorState s
Documentation
data ActorState s Source
Inner state of actor module.
s
- - State of next module, the states are chained via nesting.
ActorState | |
|
Generic (ActorState s) Source | |
NFData s => NFData (ActorState s) Source | |
Monad m => MonadState (ActorState s) (ActorT s m) | |
type Rep (ActorState s) Source |
emptyActorState :: s -> ActorState s Source
Create empty actor state
moveSendedMessages :: ActorState s -> ActorState s Source
Perform rotation between sended messages and recieved ones