MCPcopy Index your code
hub / github.com/MultithreadedJSBook/code-samples / write

Method write

ch6-ring-buffer/ring-buffer.js:100–102  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

98 }
99
100 write(data) {
101 return this.lock.exec(() => this.ringBuffer.write(data));
102 }
103
104 read(bytes) {
105 return this.lock.exec(() => this.ringBuffer.read(bytes));

Callers

nothing calls this directly

Calls 2

execMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected