Skip to content

Commit

Permalink
fix: sync readme with type-def doc-block
Browse files Browse the repository at this point in the history
  • Loading branch information
krisanalfa committed Feb 21, 2024
1 parent 9e689eb commit a2359bd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,18 @@ export type Options = {
console.log('Executing...');
});
const throttled = throttle(() => {
console.log('Executing...');
});
await throttled();
await throttled();
const promise = throttled();
abortController.abort();
let promise = throttled();
await promise;
//=> Executing...
//=> Executing...
//=> Promise rejected with AbortError
//=> Promise rejected with AbortError (DOMException)
```
*/
readonly signal?: AbortSignal;
Expand Down

0 comments on commit a2359bd

Please sign in to comment.