0.0.1 • Published 5 years ago

@paradoxu/promiser v0.0.1

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

Promiser

Make your promises prettier with this simple wrapper, that can help you write promises without using a callback!

Usage

You can also check if a Promiser instance has already been solved by calling promiser.isSolved getter which will return true if promiser has been solved and false if not.

A single instance of Promiser can be used only once, so once you have solved your promise, that instance can't be reused for resolving/rejecting any other value!