Skip to content

Commit 75680ee

Browse files
authored
Merge pull request #2142 from joaquinelio/patch-1
One more step please
2 parents e7f6a88 + 8a330b3 commit 75680ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

5-network/04-fetch-abort/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The usage is very straightforward:
99

1010
## The AbortController object
1111

12-
Step 1: create a controller:
12+
Create a controller:
1313

1414
```js
1515
let controller = new AbortController();
@@ -145,4 +145,4 @@ let results = await Promise.all([...fetchJobs, ourJob]);
145145

146146
- `AbortController` is a simple object that generates `abort` event on it's `signal` property when `abort()` method is called (and also sets `signal.aborted` to `true`).
147147
- `fetch` integrates with it: we pass `signal` property as the option, and then `fetch` listens to it, so it becomes possible to abort the `fetch`.
148-
- We can use `AbortController` in our code. The "call `abort()`" -> "listen to `abort` event" interaction is simple and universal. We can use it even without `fetch`.
148+
- We can use `AbortController` in our code. The "call `abort()`" -> "listen to `abort` event" interaction is simple and universal. We can use it even without `fetch`.

0 commit comments

Comments
 (0)