Expand messaging, network, consensus, and platform module APIs.
Add batch helpers, clear utilities, and count methods for qos topics, brokers, probes, leases, locks, and registry modules. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -107,6 +107,17 @@ class HyperP2PGpuSlot extends EventEmitter {
|
||||
return n
|
||||
}
|
||||
|
||||
registerSlotBatch (entries) {
|
||||
if (!Array.isArray(entries)) throw new Error('entries array required')
|
||||
return entries.map((e) => this.registerSlot(e.slotId, e.caps || {}))
|
||||
}
|
||||
|
||||
clearAll () {
|
||||
const n = this._slots.size
|
||||
this._slots.clear()
|
||||
return n
|
||||
}
|
||||
|
||||
async ready () {
|
||||
if (this.swarm || !this.topic) return this
|
||||
await initModuleSwarm(this, {
|
||||
|
||||
Reference in New Issue
Block a user