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:
Raven Scott
2026-05-21 03:17:48 -04:00
co-authored by Cursor
parent c3b112f435
commit c2282bd2b9
20 changed files with 220 additions and 0 deletions
@@ -122,6 +122,21 @@ class HyperPearPreflightSync extends EventEmitter {
return [...this._jobs.keys()]
}
failTimedOut () {
let n = 0
for (const job of this.listPending()) {
if (this.timedOut(job.id)) {
this.fail(job.id, 'warmup timeout')
n++
}
}
return n
}
jobCount () {
return this._jobs.size
}
getStats () {
return platformStats(this._stats, PROTOCOL, {
jobs: this._jobs.size,