Trait of objects that perform asynchronous operations.

interface Progress {
    get loading(): boolean;
    get progress(): number;
}

Implemented by

Accessors

Accessors

  • get loading(): boolean
  • Gets whether the object is currently performing an asynchronous operation.

    Returns boolean

  • get progress(): number
  • Returns the percentage of progress, in normalized value (i.e in the [0, 1] range), of the asynchronous operations that are scheduled to run on this object. 1 means that all operations have finished.

    Returns number