UNPKG

asva-executors

Version:

Helper classes for your async flow control

14 lines (13 loc) 433 B
import Executor, { ExecutorCommand } from './Executor'; /** * This executor keeps state of last result */ export declare class StatefulExecutor extends Executor { state: any; constructor(command: ExecutorCommand, state?: any); static createAndRun(command: ExecutorCommand, state?: any): StatefulExecutor; /** * Run command and cache promise. */ run(...parameters: any[]): Promise<any>; }