Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ReferenceCollection<K, V>

Type Parameters

Hierarchy

Index

Constructors

Properties

_keys: Map<string, K> = ...
_values: Map<string, V> = ...
factory: ((key: K) => MaybePromise<V>)

Type declaration

onDidCreate: Event<V> = ...
onDidCreateEmitter: Emitter<V> = ...
onWillDispose: Event<V> = ...
onWillDisposeEmitter: Emitter<V> = ...
pendingValues: Map<string, MaybePromise<V>> = ...
references: Map<string, DisposableCollection> = ...
toDispose: DisposableCollection = ...

Methods

  • clear(): void
  • dispose(): void
  • doAcquire(key: string, object: V): Reference<V>
  • get(args: K): undefined | V
  • getOrCreateValue(key: string, args: K): Promise<V>
  • has(args: K): boolean
  • keys(): K[]
  • toKey(args: K): string
  • values(): V[]