Socket
Book a DemoInstallSign in
Socket

execution-context

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

execution-context

A generic implementation of concurrent and sequential code execution

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Message Script / Execution Context

A generic implementation of concurrent and sequential code execution.

Install

npm install execution-context

Usage

import { ExecutionContext, ImmediateExecutor } from 'execution-context';

const executor = new ImmediateExecutor();
const context = new ExecutionContext(executor);

context.execute(() => /* some routine */);

Executors

This package includes a set of executors which uses different APIs to schedule routines execution.

import {
  AnimationFrameExecutor,
  DelayExecutor,
  IdleCallbackExecutor,
  ImmediateExecutor,
  NextTickExecutor
} from 'execution-context';

FAQs

Package last updated on 23 Dec 2016

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