API (v2.0.0) - Giro3D
    Preparing search index...

    Provides a way to track the progress of running operations.

    Hierarchy

    Implements

    Index

    Constructors

    Accessors

    • get loading(): boolean

      Gets whether at least one operation is being executed.

      Returns boolean

    • get progress(): number

      Returns a number between 0 and 1 which represent the ratio between completed operations and total operations.

      Returns number

    Methods

    • Increment the number of pending operations.

      Parameters

      • count: number = 1

        How many increments to do. Default is 1.

      Returns void

    • Increments the counter before starting the promise, then decrements it safely when the promises resolves or fails.

      Type Parameters

      • T

      Parameters

      • promise: Promise<T>

      Returns Promise<T>