We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fcc751 commit 9636657Copy full SHA for 9636657
README.md
@@ -312,6 +312,25 @@ const response = await client.getList({
312
});
313
```
314
315
+### AbortController: abort() method
316
+
317
+You can abort fetch requests.
318
319
+```ts
320
+const controller = new AbortController()
321
+const response = await client.getObject({
322
+ customRequestInit: {
323
+ signal: controller.signal
324
+ },
325
+ endpoint: "config",
326
+});
327
328
+setTimeout(() => {
329
+ controller.abort()
330
+}, 1000)
331
+```
332
333
334
# LICENSE
335
336
Apache-2.0
0 commit comments