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

Method read

ch6-ring-buffer/ring-buffer.js:104–106  ·  view source on GitHub ↗
(bytes)

Source from the content-addressed store, hash-verified

102 }
103
104 read(bytes) {
105 return this.lock.exec(() => this.ringBuffer.read(bytes));
106 }
107}
108
109const { isMainThread, Worker, workerData } = require('worker_threads');

Callers

nothing calls this directly

Calls 2

execMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected