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 3e387e6 commit fb91101Copy full SHA for fb91101
packages/autocomplete-core/src/utils/createCancelablePromiseList.ts
@@ -1,8 +1,22 @@
1
import { CancelablePromise } from '.';
2
3
export type CancelablePromiseList<TValue> = {
4
+ /**
5
+ * Add a cancelable promise to the list.
6
+ *
7
+ * @param cancelablePromise The cancelable promise to add.
8
+ */
9
add(cancelablePromise: CancelablePromise<TValue>): CancelablePromise<TValue>;
10
11
+ * Cancel all pending promises.
12
13
+ * Requests aren't actually stopped. All pending promises will settle, but
14
+ * attached handlers won't run.
15
16
cancelAll(): void;
17
18
+ * Whether there are pending promises in the list.
19
20
isEmpty(): boolean;
21
};
22
0 commit comments