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

bqe

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bqe

Execute asynchronous operations in sequence in the background

latest
Source
npmnpm
Version
1.0.5
Version published
Weekly downloads
3
-40%
Maintainers
1
Weekly downloads
 
Created
Source

bqe

npm version

bqe - Background Queue Executor

About

Execute asynchronous operations in sequence in the background

Example

When your code starts up:

'use strict';

const bqe = require( 'bqe' );


bqe.start();

When you want to add an operation to the background execution queue:

'use strict';

const bqe = require( 'bqe' );


bqe.addOperation({

    operation: async () => {

        await new Promise( resolve => {

            setTimeout( () => {

                console.log( 'operation in background log' );

                resolve();

            }, 1000 );
        });
    }
});

Keywords

background

FAQs

Package last updated on 11 Sep 2020

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