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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user