MCPcopy
hub / github.com/apache/pouchdb / setIterator

Method setIterator

lib/index.js:4335–4347  ·  view source on GitHub ↗
(it)

Source from the content-addressed store, hash-verified

4333 }
4334
4335 setIterator(it) {
4336 this._iterator = it;
4337 /* istanbul ignore if */
4338 if (this._destroyed) {
4339 return it.end(function () {});
4340 }
4341 /* istanbul ignore if */
4342 if (this._waiting) {
4343 this._waiting = false;
4344 return this._read();
4345 }
4346 return this;
4347 }
4348
4349 _cleanup(err) {
4350 if (this._destroyed) {

Callers 1

sublevelFunction · 0.45

Calls 1

_readMethod · 0.95

Tested by

no test coverage detected