Represents a done state in the builder process. This class is used when the builder has finished and the result is available. @template T The type of the result.
Constructor
Creates a new instance of the BuilderDone class.
Presentation constructor (
readonly tag: string ,
readonly result: TResult ,
readonly fromCache: boolean = false ,
readonly afterEmit ?: (() => void ) | undefined
): BuilderDone < TResult > ;
Parameters Name Type Description r
tag
string
@param tag
r
result
TResult
@param {T} result The result of the builder process.
r
fromCache
boolean
@param fromCache Whether the result was restored from the cache.
r
afterEmit
(() => void) | undefined
@param afterEmit A function to execute after the result has been emitted.
Properties
Name Type Description state r
"done"