@actorize/core
Advanced tools
+30
| # @actorize/core | ||
| ## Getting Started | ||
| ```bash | ||
| $ npm install @actorize/core | ||
| # or | ||
| $ yarn add @actorize/core | ||
| ``` | ||
| ```javascript | ||
| import { | ||
| createDirector, | ||
| createStore, | ||
| } from '@actorize/core'; | ||
| const director = createDirector({ | ||
| store: createStore(), | ||
| }); | ||
| const actorOne = director.registerActor('one'); | ||
| actorOne.onMessage((msgs) => { | ||
| if (msgs[0].payload === 'DO_SOMETHING') { | ||
| console.log('I DID SOMETHING'); | ||
| } | ||
| }); | ||
| const actorTwo = director.registerActor('two'); | ||
| actorTwo.sendMessage('one', 'DO_SOMETHING'); | ||
| ``` |
+1
-1
| { | ||
| "name": "@actorize/core", | ||
| "version": "0.0.11", | ||
| "version": "0.0.12", | ||
| "description": "Actorize helps building scalable js apps with a messaging system", | ||
@@ -5,0 +5,0 @@ "keywords": [ "actor", "messaging", "system", "worker", "threads" ], |
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
22693
2.35%29
3.57%1
-50%31
Infinity%