resolvable-promise
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "resolvable-promise", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Promises with the resolve and reject functions exposed", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# resolvable-promise | ||
I've found that for the majority of projects I keep needing to rewrite or copy-paste the same small piece of code, | ||
a function that creates a promise with the resolve and reject functions exposed. This repository is that small snippet | ||
a function that creates a promise with the resolve and reject functions exposed. This project is that small snippet | ||
of code, created mostly for my own convenience. | ||
@@ -32,3 +32,3 @@ | ||
``` | ||
Will now resolve... | ||
Resolving... | ||
Resolved! | ||
@@ -40,3 +40,3 @@ ``` | ||
### Arguments | ||
You can optionally provide `makeResolvable` with an callback just like a promise: | ||
You can optionally provide `makeResolvable` with an executor callback just like a promise: | ||
```javascript | ||
@@ -43,0 +43,0 @@ const resolvable = makeResolvable((resolve, reject) => { |
2538