Update gitignore (sorry)
This commit is contained in:
parent
a8f8c4d7ad
commit
cca8b02fea
6604 changed files with 1219661 additions and 4 deletions
16
electron/node_modules/exponential-backoff/src/jitter/jitter.factory.ts
generated
vendored
Normal file
16
electron/node_modules/exponential-backoff/src/jitter/jitter.factory.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import { IBackOffOptions } from "../options";
|
||||
import { fullJitter } from "./full/full.jitter";
|
||||
import { noJitter } from "./no/no.jitter";
|
||||
|
||||
export type Jitter = (delay: number) => number;
|
||||
|
||||
export function JitterFactory(options: IBackOffOptions): Jitter {
|
||||
switch (options.jitter) {
|
||||
case "full":
|
||||
return fullJitter;
|
||||
|
||||
case "none":
|
||||
default:
|
||||
return noJitter;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue