@thundercraft5/node-deferred
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

node-deferred

node-deferred is a library that provides a promise with additional functionality such as state querying, and external resolving/rejecting.

Usage

Import Deferred or ProgressableDeferred for progress notification functionality.

import Deferred from "@thundercraft5/node-deferred";

const def = new Deferred();

def.resolve("Test");
await def; // "Test"

Package Sidebar

Install

npm i @thundercraft5/node-deferred

Weekly Downloads

1

Version

1.0.6

License

MIT

Unpacked Size

38.8 kB

Total Files

12

Last publish

Collaborators

  • thundercraft5