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:
@@ -145,6 +145,11 @@ class HyperP2PSubscriptionLease extends EventEmitter {
|
||||
return { leases: this._leases.size, channels: this.listChannels() }
|
||||
}
|
||||
|
||||
acquireBatch (channels) {
|
||||
if (!Array.isArray(channels)) throw new Error('channels array required')
|
||||
return channels.map((ch) => this.acquire(ch))
|
||||
}
|
||||
|
||||
getStats () {
|
||||
return { ...this._stats, active: this._leases.size, protocol: PROTOCOL }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user