Skip to Content
DocumentationAPI ReferenceCoreSignalsClassesClass: DependencyContext<TOwner>

@revideo/core


@revideo/core / signals / DependencyContext

Class: DependencyContext<TOwner>

Defined in: signals/DependencyContext.ts:13 

Extended by

Type Parameters

TOwner

TOwner = void

Implements

Constructors

Constructor

new DependencyContext<TOwner>(owner): DependencyContext<TOwner>

Defined in: signals/DependencyContext.ts:65 

Parameters

owner

TOwner

Returns

DependencyContext<TOwner>

Properties

dependencies

protected dependencies: Set<Subscribable<void, EventHandler<void>>>

Defined in: signals/DependencyContext.ts:61 


event

protected event: FlagDispatcher

Defined in: signals/DependencyContext.ts:62 


invokable

protected readonly invokable: any

Defined in: signals/DependencyContext.ts:59 


owner

protected owner: TOwner

Defined in: signals/DependencyContext.ts:65 


collectionSet

protected static collectionSet: Set<DependencyContext<any>>

Defined in: signals/DependencyContext.ts:16 


collectionStack

protected static collectionStack: DependencyContext<any>[] = []

Defined in: signals/DependencyContext.ts:17 


promises

protected static promises: PromiseHandle<any>[] = []

Defined in: signals/DependencyContext.ts:18 

Methods

clearDependencies()

protected clearDependencies(): void

Defined in: signals/DependencyContext.ts:101 

Returns

void


collect()

protected collect(): void

Defined in: signals/DependencyContext.ts:106 

Returns

void


dispose()

dispose(): void

Defined in: signals/DependencyContext.ts:114 

Returns

void


finishCollecting()

protected finishCollecting(): void

Defined in: signals/DependencyContext.ts:94 

Returns

void


invoke()

protected invoke(): void

Defined in: signals/DependencyContext.ts:77 

Returns

void


markDirty()

protected markDirty(): void

Defined in: signals/DependencyContext.ts:63 

Returns

void


startCollecting()

protected startCollecting(): void

Defined in: signals/DependencyContext.ts:81 

Returns

void


toPromise()

toPromise(): Promise<DependencyContext<TOwner>>

Defined in: signals/DependencyContext.ts:120 

Returns

Promise<DependencyContext<TOwner>>

Implementation of

Promisable.toPromise


collectPromise()

Call Signature

static collectPromise<T>(promise): PromiseHandle<T | null>

Defined in: signals/DependencyContext.ts:20 

Type Parameters
T

T

Parameters
promise

Promise<T>

Returns

PromiseHandle<T | null>

Call Signature

static collectPromise<T>(promise, initialValue): PromiseHandle<T>

Defined in: signals/DependencyContext.ts:21 

Type Parameters
T

T

Parameters
promise

Promise<T>

initialValue

T

Returns

PromiseHandle<T>


consumePromises()

static consumePromises(): Promise<PromiseHandle<any>[]>

Defined in: signals/DependencyContext.ts:52 

Returns

Promise<PromiseHandle<any>[]>


hasPromises()

static hasPromises(): boolean

Defined in: signals/DependencyContext.ts:48 

Returns

boolean

© 2026 Haven Technologies, Inc.
Class: DependencyContext<TOwner> – Revideo