// A job its queue started that may not run yet — X's job cap, an exit that // rests after a rate limit (controller/networkExits.ts): it ends `done`, // DEFERRED, not failed (JobRecord.deferred), with the sentence and the time it // may run. The sync scheduler re-queues a deferred channel at `until`. // // Its own module so code below the job funnel (a yt-dlp listing) can throw it // without importing streamCommand, which re-exports it. export class JobDeferredError extends Error { constructor( message: string, readonly until: number, ) { super(message); this.name = "JobDeferredError"; } }