forked from olcxjas-softworks/LarpixClient
Update gitignore (sorry)
This commit is contained in:
parent
a8f8c4d7ad
commit
cca8b02fea
6604 changed files with 1219661 additions and 4 deletions
15
electron/node_modules/exponential-backoff/src/delay/skip-first/skip-first.delay.ts
generated
vendored
Normal file
15
electron/node_modules/exponential-backoff/src/delay/skip-first/skip-first.delay.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import { Delay } from "../delay.base";
|
||||
|
||||
export class SkipFirstDelay extends Delay {
|
||||
public async apply() {
|
||||
return this.isFirstAttempt ? true : super.apply();
|
||||
}
|
||||
|
||||
private get isFirstAttempt() {
|
||||
return this.attempt === 0;
|
||||
}
|
||||
|
||||
protected get numOfDelayedAttempts() {
|
||||
return this.attempt - 1;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue