A class representing a task.

Constructors

Properties

Accessors

Constructors

  • Constructor for creating an instance of the class.

    Parameters

    • target: Promise<any>

      The target promise to be handled.

    Returns Task

    • This method does not return any value.

Properties

target: Promise<any>

The target promise to be handled.

Accessors

  • get status(): "pending" | "fulfilled" | "rejected"
  • Retrieves the current status value.

    Returns "pending" | "fulfilled" | "rejected"

    The value of the status.