A helper utility for use with the functional API that returns a value to the caller, as well as a separate state value to persist to the checkpoint. This allows workflows to maintain state between runs while returning different values to the caller.
final<ValueT, SaveT>(options: __type): EntrypointFinal<ValueT, SaveT>| Name | Type | Description |
|---|---|---|
options* | __type |
return entrypoint.final({
value: "result for caller",
save: { counter: currentCount + 1 }
});