MCPcopy Create free account
hub / github.com/pacexy/flow / flush

Method flush

packages/epubjs/src/utils/queue.js:148–163  ·  view source on GitHub ↗

* Flush all, as quickly as possible * @return {Promise}

()

Source from the content-addressed store, hash-verified

146 * @return {Promise}
147 */
148 flush() {
149 if (this.running) {
150 return this.running
151 }
152
153 if (this._q.length) {
154 this.running = this.dequeue().then(
155 function () {
156 this.running = undefined
157 return this.flush()
158 }.bind(this),
159 )
160
161 return this.running
162 }
163 }
164
165 /**
166 * Clear all items in wait

Callers

nothing calls this directly

Calls 1

dequeueMethod · 0.95

Tested by

no test coverage detected