New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

actor-proc

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

actor-proc

Actor pattern implementation in JavaSript.

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

GitHub license npm

actor-proc

Actor pattern implementation in JavaScript

Motivation

JavaScript is based upon a single event loop which handles one event at a time that means that CPU heavy tasks will block other tasks from being executed. In case of a browser environment, the browser will not response to user events.

actor-proc offers an easy way to offload business access layer tasks from the main event loop onto dedicated workers, which run independently in parallel in dedicated threads in a browser environment, Web Workers

Getting Started

Install via yarn:

yarn add actor-proc

Install via npm:

npm i --save actor-proc

API

The API of actor-proc consists of two parts: a function registerActor(actor: Actor) to add actors in the Actor System, and spawnActorSystem(url: string): ActorSystemProcess to spawn the Actor System with actors inside of a dedicated worker (the url refers to the actor system javascript bundle).

Examples

Examples are available in the examples directory: https://github.com/ddoronin/actor-system/tree/master/examples

FAQs

Package last updated on 12 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts