webtau API
    Preparing search index...

    Function pollTask

    • Poll the current state of a task without blocking.

      Returns a Promise that resolves immediately with the current TaskState. Terminal states (completed, cancelled, failed) are permanent.

      Type Parameters

      • T

      Parameters

      • taskId: string

      Returns Promise<TaskState<T>>