Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
15 lines
337 B
Plaintext
15 lines
337 B
Plaintext
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;
|
|
}
|
|
} |