Class SyncReferenceCollection<K, V>

Synchronous implementation of AbstractReferenceCollection that requires the client to provide a value factory, used to service the acquire() function.

Type Parameters

Hierarchy (view full)

Constructors

Properties

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

Type declaration

    • (key): V
    • Parameters

      • key: K

      Returns V

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

Methods