1 | import { Operation } from './Operation';
|
2 | declare type BlockResult = any[] | any;
|
3 | /**
|
4 | * Operation Subclass that accepts a function as an argument which will be the task to run.
|
5 | * Additionally, multiple functions can be appended to run simultaneously as the same task.
|
6 | */
|
7 | export declare class BlockOperation extends Operation<any> {
|
8 | blocks: Function[];
|
9 | constructor();
|
10 | /**
|
11 | *
|
12 | */
|
13 | run(): Promise<BlockResult>;
|
14 | /**
|
15 | * Append another function to run simultaneously as the same task
|
16 | * @param {function} block - function to add
|
17 | */
|
18 | addBlock(block: Function): void;
|
19 | }
|
20 | export {};
|