@vivliostyle/core
    Preparing search index...

    Class Frame<T>

    Asynchronous execution frame. Corresponds to an asynchronous function invocation.

    Type Parameters

    • T

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    callback: (p1: any) => void = null
    handler: (p1: Frame<any>, p2: Error) => void = null
    name: string
    parent: Frame<T>
    res: T = null
    state: FrameState
    task: Task

    Methods

    • Parameters

      • res: T

      Returns void

    • Returns string

      frame name.

    • Repeatedly execute the given function asynchronously until it returns false.

      Parameters

      Returns Result<boolean>

      holds true.

    • Yield to other tasks for the specified time.

      Parameters

      • delay: number

        in milliseconds.

      Returns Result<boolean>

      holds true

    • Parameters

      • callback: (p1: T) => void

      Returns void

    • If this task was executed longer than task's slice parameter.

      Returns Result<boolean>

      holds true