@alwatr/flatomise
TypeScript icon, indicating that this package has built-in type declarations

1.1.7 • Public • Published

Flatomise

A utility for creating promises that can be externally resolved or rejected.

Installation

yarn add @alwatr/flatomise

Usage

import {newFlatomise} from '@alwatr/flatomise';

const flatomise = newFlatomise();
flatomise.promise.then(() => {
  console.log('flatomise resolved');
});
flatomise.resolve();

For real usage, see async-queue.

Dependencies (0)

    Dev Dependencies (5)

    Package Sidebar

    Install

    npm i @alwatr/flatomise

    Weekly Downloads

    81

    Version

    1.1.7

    License

    MIT

    Unpacked Size

    11 kB

    Total Files

    11

    Last publish

    Collaborators

    • njfamirm
    • alimd