Skip to content

Commit

Permalink
Improve documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
twschiller committed Sep 25, 2024
1 parent 210e7bc commit 7ff7b32
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/bricks/transformers/controlFlow/WithCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,13 @@ export class WithCache extends TransformerABC {
title: "Time-to-Live (s)",
type: "integer",
description:
"The time-to-live for the cached value in seconds. Expiry is calculated from the start of the run.",
"The time-to-live for the cached value in seconds. If not provided, the value will not expire. Expiry is calculated from the start of the run.",
},
forceFetch: {
title: "Force Fetch",
type: "boolean",
description:
"If true, the cache will be ignored and the body always be run.",
"If toggled on, the cache will be ignored and the body always be run.",
},
},
["body", "stateKey"],
Expand Down Expand Up @@ -245,7 +245,6 @@ export class WithCache extends TransformerABC {
}

if (variableUpdate.requestId !== requestId) {
// XXX: should this be a CancelError?
deferredValuePromise.reject(
new CancelError("Value generation was superseded"),
);
Expand Down

0 comments on commit 7ff7b32

Please sign in to comment.