MCPcopy Create free account
hub / github.com/deepclause/agentvm / hasNetworkData

Method hasNetworkData

src/ringbuffer.js:301–305  ·  view source on GitHub ↗

* Check if there's data available in the network ring buffer

()

Source from the content-addressed store, hash-verified

299 * Check if there's data available in the network ring buffer
300 */
301 hasNetworkData() {
302 const head = Atomics.load(this.int32, NET_HEAD_INDEX);
303 const tail = Atomics.load(this.int32, NET_TAIL_INDEX);
304 return head !== tail;
305 }
306
307 /**
308 * Check if there's stdin data available

Callers 1

waitForIOMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected