Skip to content

Commit

Permalink
Readme fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
zordone committed Feb 23, 2020
1 parent 39f5f26 commit 13c4250
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- prettier-ignore -->
## Tasks

- ✅ Creating with executor
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- prettier-ignore -->
[![Codecov Coverage](https://img.shields.io/codecov/c/github/zordone/abortable-promise-chain/master.svg?style=flat-square)](https://codecov.io/gh/zordone/abortable-promise-chain/)

# abortable-promise-chain
Expand Down Expand Up @@ -50,8 +51,7 @@ There are two ways of creating an `AbortablePromise`:
1. From an [executor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/Promise#Syntax) function, just like we would use for creating a normal `Promise`:

```javascript
const executor = (resolve, reject) =>
setTimeout(() => resolve('some data'), 1000);
const executor = (resolve, reject) => setTimeout(() => resolve('data'), 1000);
const abortable = new AbortablePromise(executor);
```

Expand Down

0 comments on commit 13c4250

Please sign in to comment.