Never Punch Manticores

    execution-context

    1.0.0 • Public • Published

    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';

    Keywords

    none

    Install

    npm i execution-context

    DownloadsWeekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • alexeyraspopov