UNPKG

timing-provider

Version:

An implementation of the timing provider specification.

9 lines (8 loc) 207 B
export const createBackoff = (base: number) => <const>[ () => base ** 2, () => { // tslint:disable-next-line:no-parameter-reassignment base += 1; } ];