Skip to content

Commit f214ba4

Browse files
Fixed README.md;
1 parent 253277b commit f214ba4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
- [Installation](#installation-hammer)
1010
- [CDN bundle](#cdn-bundle)
1111
- [Usage examples](#usage-examples)
12-
- [Request aborting using CPromise cancellation API](#request-aborting-using-cpromise-cancellation -api)
12+
- [Request aborting using CPromise cancellation API](#request-aborting-using-cpromise-cancellation-api)
1313
- [Request aborting using AbortController signal](#request-aborting-using-abortcontroller-signal)
1414
- [Request aborting using Axios cancelToken](#request-aborting-using-axios-canceltoken)
1515
- [Using generators as async functions](#using-generators-as-async-functions)
@@ -48,9 +48,9 @@ module global export- `cpAxios`
4848

4949
#### Live Example
5050

51-
[Live browser example](https://codesandbox.io/s/mutable-breeze-wdyp)
51+
[Live browser example](https://codesandbox.io/s/strange-almeida-1lcjj)
5252

53-
#### Request aborting using CPromise cancellation API:
53+
#### Request aborting using CPromise cancellation API:
5454
````javascript
5555
const cpAxios= require('cp-axios');
5656
const url= 'https://run.mocky.io/v3/753aa609-65ae-4109-8f83-9cfe365290f0?mocky-delay=5s';
@@ -87,7 +87,7 @@ module global export- `cpAxios`
8787
});
8888

8989
setTimeout(() => {
90-
chain.cancel();
90+
abortController.abort();
9191
}, 500);
9292
````
9393

@@ -145,7 +145,7 @@ const chain= CPromise.all([
145145
console.warn(`We got an error: ${err}`);
146146
});
147147

148-
// other request will aborted if one fails
148+
// other request will be aborted if one fails
149149

150150
// setTimeout(()=> chain.cancel(), 1000); // abort the request after 1000ms
151151
````

0 commit comments

Comments
 (0)