Expand media-streaming, agents, applications, and experimental module APIs.
Add batch helpers, counts, and clear utilities across chunking, ladders, trees, workflows, collab rooms, and economy ledgers. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -363,6 +363,13 @@ class HyperP2PTaskOrchestrator extends EventEmitter {
|
||||
return [...this.tasks.keys()]
|
||||
}
|
||||
|
||||
async submitBatch (specs) {
|
||||
if (!Array.isArray(specs)) throw new Error('specs array required')
|
||||
const ids = []
|
||||
for (const spec of specs) ids.push(await this.submitTask(spec))
|
||||
return ids
|
||||
}
|
||||
|
||||
async cancelAllPending (reason = 'bulk-cancel') {
|
||||
await this.ready()
|
||||
let n = 0
|
||||
|
||||
Reference in New Issue
Block a user