New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@ematipico/runner

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

@ematipico/runner

Run concurrent async operations and cache them

latest
npmnpm
Version
1.0.2
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

Runner

Handles multiple async operations with caching

Build Status

Installation

With yarn

yarn add @ematipico/runner

With npm

npm i -D @ematipico/runner

Usage

import createRunner from '@ematipico/runner';

const runner = createRunner();
const getPosts = fetch('https://url/to/posts');
const getPosts2 = fetch('https://url/to/posts');

const result = runner.run(getPosts);
const result2 = runner.run(getPosts2); // the async operation gets run once

FAQs

Package last updated on 21 Aug 2019

Related posts