interface / @typed/fx/RefHashMap

RefHashMap

A RefHashMap is a RefSubject specialized over a HashMap.

Package version
2.0.0-beta.13
Category
State models
Since
1.18.0

Import

import type { RefHashMap } from "@typed/fx/RefHashMap";

Signatures

export interface RefHashMap<in out K, in out V, in out E = never, out R = never> extends RefSubject.RefSubject<HashMap.HashMap<K, V>, E, R> {
}

Why

Defines hash map state with the same current-read, pushed-update, and synchronized-write contract as RefSubject.

Ownership and lifetime

RefHashMap is a contract and performs no acquisition. Implementations retain the errors, services, interruption, and Scope requirements expressed by its members.

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source