Add batch helpers and domain utilities across modules missing Batch APIs.
Third enrichment pass: *Batch methods for agents, economy, consensus, core, messaging, network, observability, pear-platform, scheduling, storage, supercomputer, and time-ordering modules. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -127,6 +127,11 @@ class HyperP2PStreamMultiplex extends EventEmitter {
|
||||
return { open: this._streams.size, frames: this._stats.frames, bytes: this._stats.bytes }
|
||||
}
|
||||
|
||||
openStreamBatch (ids) {
|
||||
if (!Array.isArray(ids)) throw new Error('ids array required')
|
||||
return ids.map((id) => this.openStream(id))
|
||||
}
|
||||
|
||||
getStats () {
|
||||
return {
|
||||
...this._stats,
|
||||
|
||||
Reference in New Issue
Block a user