UNPKG

@graphql-tools/load

Version:

A set of utils for faster development of GraphQL tools

11 lines (10 loc) 253 B
export declare function useQueue<T>(options?: { concurrency?: number; }): { add(fn: () => Promise<T>): void; runAll(): Promise<Awaited<T>[]>; }; export declare function useSyncQueue<T>(): { add(fn: () => T): void; runAll(): void; };