UNPKG

@drift-labs/common

Version:

Common functions for Drift

10 lines (9 loc) 449 B
export declare const LATE_POLLING_RESPONSE: unique symbol; /** * Utility class which makes sure that asyncronous responses get rejected when we expect them to return in the same sequence that we request them but they don't */ export declare class PollingSequenceGuard { static pollingCounts: Map<string | symbol, number>; static LATE_POLLING_RESPONSE: symbol; static fetch<T>(key: string | symbol, cb: () => Promise<T>): Promise<T>; }