Files
SnowLuma/.pnpm-store/v11/files/fc/09c2277f7e570cef0accc41172cca5eb9099063c052b35c6e0e15df0eb885d2b8792b94549f0f5413a5501c8853a8af314024cac576d7b3c5abdcc76dc2348
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +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;
}
}