blob: dd86559f5c12a9f1bfc46dbc858b7a8b640f1fd1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import Operator from "../Operator";
import OperationClient from "../../client/OperationClient";
import * as operations from "../../../shared/operations";
export default class BackgroundOperationOperator implements Operator {
constructor(
private readonly operationClient: OperationClient,
private readonly repeat: number,
private readonly op: operations.Operation
) {}
async run(): Promise<void> {
await this.operationClient.execBackgroundOp(this.repeat, this.op);
}
}
|