2.1.0 • Published 5 months ago

@0x2e757/promise-ext v2.1.0

Weekly downloads
20
License
MIT
Repository
github
Last release
5 months ago

PromiseExt

Lightweight native promise wrapper that can be cancelled. Has no dependencies on other libraries.

TypeScript code transpiled to ES2015 JavaScript.

Install

npm i @0x2e757/promise-ext

Usage

New class PromiseExt mostly will by used same as regular Promise.

How to import

import PromiseExt from "@0x2e757/promise-ext";

Unique methods

timeout — wrapper around resolver using setTimeout;

cancel — function for preventing promise or its chain actions execution;

Unique static functions

wrap — creates wrapper for provided promise;

* all function will cancel all cancellable promises if any of them will fail.

2.1.0

5 months ago

2.0.5

1 year ago

2.0.3

1 year ago

2.0.4

1 year ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago