advanced_promise
v1.0.2
Published
This project in the future will provide you with advanced opportunities for working with promises, by creating a new class MyPromise
Readme
MyPromise
This is the first version of my promise, which at the moment works as a standard promise and supports methods: -then -case
Usage
For create new promise, write:
const promise = new MyPromise(executor);Then, you can add handlers using commands:
promise.then(onFulfilled, onRejected)
promise.catch(onRejected)