Files
NapCatQQ/.pnpm-store/v3/files/fc/09c2277f7e570cef0accc41172cca5eb9099063c052b35c6e0e15df0eb885d2b8792b94549f0f5413a5501c8853a8af314024cac576d7b3c5abdcc76dc2348
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

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;
}
}