static async waitForPendingUploads() {
    while (this.hasPendingUploads()){
      await new Promise(resolve => setTimeout( () => resolve(), 1000));
    }
  }
/**
   * Returns a promise that resolves when all uploads are completed
   * @return {Promise<void>}
   */
Returns a promise that resolves when all uploads are completed
@return {Promise}
Returns a promise that resolves when all uploads are completed @return { Promise }
static async waitForPendingUploads() {
    while (this.hasPendingUploads()){
      await new Promise(resolve => setTimeout( () => resolve(), 1000));
    }
  }
static async waitForPendingUploads ( ) { while ( this . hasPendingUploads ( ) ) { await new Promise ( resolve => setTimeout ( ( ) => resolve ( ) , 1000 ) ) ; } }
Returns a promise that resolves when all uploads are completed
 @return {Promise<void>}
Returns a promise that resolves when all uploads are completed @return { Promise<void > }