blob: f73e6055d49a94f07b41b8b1673bbfc6aa538890 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import Operator from "../Operator";
import FindMasterClient from "../../client/FindMasterClient";
export default class FindPrevOperator implements Operator {
constructor(
private readonly findMasterClient: FindMasterClient,
private readonly repeat: number
) {}
async run(): Promise<void> {
for (let i = 0; i < this.repeat; ++i) {
this.findMasterClient.findPrev();
}
}
}
|