You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using extractAsPromised or extractAsync, you might want to cancel the action before it has finished.
327
-
It can be done using `CancelToken` or `AbortController`.
324
+
It can be done using `AbortController`.
328
325
329
326
For performance, by default only every 256th loop will be async, but set `asyncLoopOffset` to change. It is most likely not worth changing this.
330
327
331
328
**AbortController**
332
329
333
-
[AbortController](https://developer.mozilla.org/en-US/docs/Web/API/AbortController) is present in modern browsers and from node version `15+`. It is currently a standard way how to cancel running operations.
334
-
335
330
```js
336
331
// or use AbortController to cancel search
337
332
const abortController = new AbortController();
@@ -348,26 +343,6 @@ fuzz.extractAsPromised("gonna get aborted", choices, options)
348
343
abortController.abort();
349
344
```
350
345
351
-
**CancelToken**
352
-
353
-
For older browsers and node versions you can use cancel token. It is an in
0 commit comments