@revideo/core / signals / DependencyContext
Class: DependencyContext<TOwner>
Defined in: signals/DependencyContext.ts:13
Extended by
Type Parameters
TOwner
TOwner = void
Implements
Promisable<DependencyContext<TOwner>>
Constructors
Constructor
new DependencyContext<
TOwner>(owner):DependencyContext<TOwner>
Defined in: signals/DependencyContext.ts:65
Parameters
owner
TOwner
Returns
DependencyContext<TOwner>
Properties
dependencies
protecteddependencies:Set<Subscribable<void,EventHandler<void>>>
Defined in: signals/DependencyContext.ts:61
event
protectedevent:FlagDispatcher
Defined in: signals/DependencyContext.ts:62
invokable
protectedreadonlyinvokable:any
Defined in: signals/DependencyContext.ts:59
owner
protectedowner:TOwner
Defined in: signals/DependencyContext.ts:65
collectionSet
protectedstaticcollectionSet:Set<DependencyContext<any>>
Defined in: signals/DependencyContext.ts:16
collectionStack
protectedstaticcollectionStack:DependencyContext<any>[] =[]
Defined in: signals/DependencyContext.ts:17
promises
protectedstaticpromises:PromiseHandle<any>[] =[]
Defined in: signals/DependencyContext.ts:18
Methods
clearDependencies()
protectedclearDependencies():void
Defined in: signals/DependencyContext.ts:101
Returns
void
collect()
protectedcollect():void
Defined in: signals/DependencyContext.ts:106
Returns
void
dispose()
dispose():
void
Defined in: signals/DependencyContext.ts:114
Returns
void
finishCollecting()
protectedfinishCollecting():void
Defined in: signals/DependencyContext.ts:94
Returns
void
invoke()
protectedinvoke():void
Defined in: signals/DependencyContext.ts:77
Returns
void
markDirty()
protectedmarkDirty():void
Defined in: signals/DependencyContext.ts:63
Returns
void
startCollecting()
protectedstartCollecting():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
collectPromise()
Call Signature
staticcollectPromise<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
staticcollectPromise<T>(promise,initialValue):PromiseHandle<T>
Defined in: signals/DependencyContext.ts:21
Type Parameters
T
T
Parameters
promise
Promise<T>
initialValue
T
Returns
consumePromises()
staticconsumePromises():Promise<PromiseHandle<any>[]>
Defined in: signals/DependencyContext.ts:52
Returns
Promise<PromiseHandle<any>[]>
hasPromises()
statichasPromises():boolean
Defined in: signals/DependencyContext.ts:48
Returns
boolean