Expand media, network-stack, pear-platform, and scheduling module APIs
Add batch helpers, clear/count utilities, and management methods across content protection, FEC, flow shaper, circuit loom, trust gate, peer scheduler, and related modules. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -70,6 +70,15 @@ class HyperP2PPeerScheduler extends EventEmitter {
|
||||
return ids.length
|
||||
}
|
||||
|
||||
jobIds () {
|
||||
return [...this._jobs.keys()]
|
||||
}
|
||||
|
||||
scheduleBatch (entries) {
|
||||
if (!Array.isArray(entries)) throw new Error('entries must be an array')
|
||||
return entries.map((e) => this.schedule(e.expr, e.id, { shard: e.shard }))
|
||||
}
|
||||
|
||||
msUntil (jobId, now = Date.now()) {
|
||||
const job = this._jobs.get(jobId)
|
||||
if (!job) return null
|
||||
|
||||
Reference in New Issue
Block a user