MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / onWritable

Method onWritable

tools/xsbug/esptool.js:473–483  ·  view source on GitHub ↗
(count)

Source from the content-addressed store, hash-verified

471 baud,
472 device: this.#device,
473 onWritable(count) {
474 if (resolve)
475 resolve(true);
476 resolve = reject = undefined;
477
478 this.flash.#writeSpaceAvailable = count;
479 if (this.flash.#writable) {
480 this.flash.#writable(true);
481 this.flash.#writable = undefined;
482 }
483 },
484 onReadable() {
485 if (this.flash.#readable) {
486 this.flash.#readable(true);

Callers

nothing calls this directly

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected