async * list(opts) {
        let results = await this.ls(opts)
        const total = results.count
        let yielded = 0
        while (yielded < total) {
            if (results.results.length == 0) {
                return
            }

            for (const status of results.results) {
                yielded += 1
                yield status
            }

            // request the next page of pins (older than the oldest from this page)
            const oldestResult = results.results[results.results.length-1]
            opts.before = oldestResult.created
            results = await this.ls(opts)
        }
    }
/**
     * List pin objects, returning an async iterator that will yield all results. This may make multiple network requests
     * depending on the size of the result set.
     *
     * List all the pin objects, matching optional filters; when no filter is provided, only successful pins are returned
     * @param {Object} opts Optional parameters
     * @param {String|Array.<String>} opts.cid Return pin objects responsible for pinning the specified CID(s); be aware that using longer hash functions introduces further constraints on the number of CIDs that will fit under the limit of 2000 characters per URL  in browser contexts
     * @param {String} opts.name Return pin objects with specified name (by default a case-sensitive, exact match)
     * @param {module:model/TextMatchingStrategy} opts.match Customize the text matching strategy applied when name filter is present
     * @param {Array.<module:model/Status>} opts.status Return pin objects for pins with the specified status
     * @param {Date} opts.before Return results created (queued) before provided timestamp
     * @param {Date} opts.after Return results created (queued) after provided timestamp
     * @param {Number} opts.limit Max records to return for each network request (default to 10)
     * @param {Object.<String, {String: String}>} opts.meta Return pin objects that match specified metadata
     * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PinResults}
     */
List pin objects, returning an async iterator that will yield all results. This may make multiple network requests
depending on the size of the result set.


List pin objects returning an async iterator that will yield all results . This may make multiple network requests depending on the size of the result set .
async * list(opts) {
        let results = await this.ls(opts)
        const total = results.count
        let yielded = 0
        while (yielded < total) {
            if (results.results.length == 0) {
                return
            }
            for (const status of results.results) {
                yielded += 1
                yield status
            }
            const oldestResult = results.results[results.results.length-1]
            opts.before = oldestResult.created
            results = await this.ls(opts)
        }
    }
async * list ( opts ) { let results = await this . ls ( opts ) const total = results . count let yielded = 0 while ( yielded < total ) { if ( results . results . length == 0 ) { return } for ( const status of results . results ) { yielded += 1 yield status } const oldestResult = results . results [ results . results . length - 1 ] opts . before = oldestResult . created results = await this . ls ( opts ) } }
List pin objects, returning an async iterator that will yield all results.
List pin objects returning an async iterator that will yield all results .
// request the next page of pins (older than the oldest from this page)