Type Parameters

  • T

  • I extends any[] = []

Hierarchy

  • Task

Constructors

  • Type Parameters

    • T

    • I extends any[] = []

    Parameters

    • callback: TaskCallback<T, I>
    • children: Task<any, any[]>[] = []
    • context: object = {}

    Returns Task<T, I>

Properties

callback: TaskCallback<T, I>
children: Task<any, any[]>[]
context: object
error: unknown = undefined
eventEmitter: EventEmitter<string | symbol, any>
result: undefined | T = undefined
status: TaskStatus = 'pending'

Methods

  • Parameters

    Returns Promise<T>

  • Returns Task<any, any[]>[]

  • Type Parameters

    • C extends object = object

    Returns C

  • Returns Task<any, any[]>[]

  • Returns unknown

  • Returns undefined | T

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Parameters

    • preloadedResult: T

    Returns Task<T, I>

  • Parameters

    • callback: (() => unknown)
        • (): unknown
        • Returns unknown

    Returns Task<T, I>

  • Parameters

    • callback: (() => unknown)
        • (): unknown
        • Returns unknown

    Returns Task<T, I>

  • Parameters

    Returns Task<T, I>

  • Parameters

    • status: TaskStatus
    • callback: (() => unknown)
        • (): unknown
        • Returns unknown

    Returns Task<T, I>

  • Parameters

    • callback: (() => unknown)
        • (): unknown
        • Returns unknown

    Returns Task<T, I>

  • Returns Task<T, I>

  • Parameters

    Returns Promise<T>

  • Parameters

    • children: Task<any, any[]>[]

    Returns Task<T, I>

  • Parameters

    • context: object

    Returns Task<T, I>

  • Parameters

    Returns void

Generated using TypeDoc