ArtifactCache
ArtifactCache =
object
Defined in: packages/app-system/src/fs/artifact-cache.ts:45
Properties
Section titled “Properties”
readonlyroot:string
Defined in: packages/app-system/src/fs/artifact-cache.ts:57
Absolute cache root.
runRoot
Section titled “runRoot”
readonlyrunRoot:string|null
Defined in: packages/app-system/src/fs/artifact-cache.ts:64
Absolute directory holding every lifetime: "run" artifact of this run, or
null when no run id was given. Removing it is the owner’s job: the sweep
has to work when a child crashed, which is exactly when something was left
behind, so it cannot be driven by what the children report.
Methods
Section titled “Methods”ensure()
Section titled “ensure()”ensure(
key,build,signal?):Promise<string>
Defined in: packages/app-system/src/fs/artifact-cache.ts:50
Returns the cached directory, or invokes build once to populate it. Safe
against concurrent callers in other processes.
Parameters
Section titled “Parameters”(directory, signal) => Promise<void>
signal?
Section titled “signal?”AbortSignal
Returns
Section titled “Returns”Promise<string>