Interface TaskDep<O>

interface TaskDep<O> {
    async?: number | boolean;
    force?: boolean;
    name: string;
    options?: O;
    resolveOptions?: ((ctx: TaskContext<any>) => O | Promise<O>);
    [k: string]: any;
}

Type Parameters

  • O = any

Hierarchy (view full)

Indexable

  • [k: string]: any

Properties

async?: number | boolean

Dependences are executed serially by default. If order doesn't matter and you want better performance via parallel, you can mark it as asynchronized. Asynchronized will run immediately whether there are synchronized tasks before them or not. You can pass a number as the priority of asynchronized tasks, bigger is formmer.

force?: boolean

Whether rerun it when it occured in dependences tree more then once.

name: string
options?: O

Parsed options

resolveOptions?: ((ctx: TaskContext<any>) => O | Promise<O>)