UNPKG

@botonic/plugin-contentful

Version:

Botonic Plugin Contentful is one of the **[available](https://github.com/hubtype/botonic/tree/master/packages)** plugins for Botonic. **[Contentful](http://www.contentful.com)** is a CMS (Content Management System) which manages contents of a great variet

12 lines (11 loc) 445 B
export declare function sleep(ms: number): Promise<void>; export interface Backoff { backoff(): Promise<void>; } export declare class ExponentialBackoff implements Backoff { private startMs; private times; constructor(startMs?: number, times?: number); backoff(): Promise<void>; } export declare function repeatWithBackoff<T>(func: () => Promise<T>, backoff?: ExponentialBackoff, logger?: (msg: string) => void): Promise<T>;