JavaScript Actors
This lib is a proof of concept implementation of actor system in JavaScript.
Install
npm install actor-system
Thanks to @kt3k for providing the name in NPM registry.
How to use
- Bootstrap actor system.
; const executor = ;const context = executor;const dispatcher = context;const system = dispatcher;
Or by using default set of tools:
; const system = ActorSystem;
- Define message types.
;
- Implement actors.
{ for { }} { for { }} { systemdispatcher;}
- Spawn them.
system;system;system;