RateLimiter: {
schedule: (<T>(task: (() => Promise<T>)) => Promise<T>);
}
Type declaration
-
schedule: (<T>(task: (() => Promise<T>)) => Promise<T>)
-
- <T>(task: (() => Promise<T>)): Promise<T>
-
Parameters
-
task: (() => Promise<T>)
-
- (): Promise<T>
-
Returns Promise<T>
Returns Promise<T>