1.0.1 • Published 3 years ago

execution-queue v1.0.1

Weekly downloads
-
License
GPL V3
Repository
github
Last release
3 years ago

Status GitHub Issues GitHub Pull Requests License


📝 Table of Contents

🧐 About

Executes a queue of functions one by one

🏁 Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

  • NodeJs

Installing

Using npm:

  • npm install execution-queue

Using yarn:

  • yarn add execution-queue

🔧 Running the tests

Test are jest based, so

  • path_to_jest --config jest.config.js i.e.
  • ./node_modules/.bin/jest --config jest.config.js

🎈 Usage

const { ExecutionQueue } = require("execution-queue");
const executionQueue = new ExecutionQueue();


executionQueue.push(() => {
    console.log("Hello world!");
});
executionQueue.push(() => {
    console.log("Hello world 2!");
});

⛏️ Built Using

✍️ Authors

1.0.1

3 years ago

1.0.0

3 years ago