RenderRuns
Defined in: packages/core/src/adapters/render-runs.ts:10
Every render call a runner has in flight, by build and run id.
Several renders of one build can run at once in one process (the shards of a sharded build), and even two with the same run id (a redelivered shard). Each call registers its own entry and removes only that entry when it ends, so no render ever drops another’s handle.
Type Parameters
Section titled “Type Parameters”T
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new RenderRuns<
T>():RenderRuns<T>
Returns
Section titled “Returns”RenderRuns<T>
Methods
Section titled “Methods”add(
buildId,runId,run): () =>void
Defined in: packages/core/src/adapters/render-runs.ts:18
Register a render call. Returns the function that removes it again (call it in finally).
Parameters
Section titled “Parameters”buildId
Section titled “buildId”string
string | undefined
The request’s run id; a render without one is keyed by its build id.
T
Returns
Section titled “Returns”() => void
matching()
Section titled “matching()”matching(
buildId,runId?):T[]
Defined in: packages/core/src/adapters/render-runs.ts:32
The runs cancel(buildId, runId) should stop: every run of the build without a run id.
Parameters
Section titled “Parameters”buildId
Section titled “buildId”string
runId?
Section titled “runId?”string
Returns
Section titled “Returns”T[]