Skip to main content

ComputedContext

class ComputedContextTValue extends DependencyContextany

Type Parameters

Constructors

constructor

public override new ComputedContextTValuefactory: ...args: any[] => TValueowner?: any: ComputedContextTValue

Type Parameters

Parameters

Overwrites DependencyContext.constructor

Methods

dispose

public override dispose(): void
Overwrites DependencyContext.dispose

toPromise

public toPromise(): PromiseComputedContextTValue
Inherited from DependencyContext.toPromise

toSignal

public toSignal(): ComputedTValue

collectPromise

static public collectPromiseTpromise: PromiseT: PromiseHandlenullT
static public collectPromiseTpromise: PromiseTinitialValue: T: PromiseHandleT

Type Parameters

Parameters

Inherited from DependencyContext.collectPromise

consumePromises

static public consumePromises(): PromisePromiseHandleany[]
Inherited from DependencyContext.consumePromises

hasPromises

static public hasPromises(): boolean
Inherited from DependencyContext.hasPromises