From 30f1dc4e4ed9e93b891abd73f27da0a47c5bf613 Mon Sep 17 00:00:00 2001 From: Ilya Kantor Date: Wed, 17 Apr 2019 10:18:06 +0300 Subject: [PATCH] abort --- 5-network/03-fetch-abort/article.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/5-network/03-fetch-abort/article.md b/5-network/03-fetch-abort/article.md index 22ef0b73..0ee45bd9 100644 --- a/5-network/03-fetch-abort/article.md +++ b/5-network/03-fetch-abort/article.md @@ -13,9 +13,9 @@ The usage is pretty simple: let controller = new AbortController(); ``` - The controller is an extremely simple object. It has a single method `abort()`, and a single property `signal`, that generates an event when `abort()` is called: + A controller is an extremely simple object. It has a single method `abort()`, and a single property `signal`. When `abort()` is called, the `abort` event triggers on `controller.signal`: - We can even use it without `fetch` for our own purposes, like this: + Like this: ```js run let controller = new AbortController();