The underlying map.
Hash function to use for generating keys for values.
Hash function to use for generating keys for values.
Readonly getHash function to use for generating keys for values.
Readonly mapThe underlying map.
Wraps a MaybePromise-yielding coroutine (generator function) into a function that returns MaybePromise.
This allows you to use maybeAsync/yield in a similar way to async/await,
where yield maybePromise will return awaited / resolved value.
Rest ...args: [value: T, options?: AbortOptions]const add = maybeAsync(function* (a: number, b: number) {
const result1: number = yield Promise.resolve(a); // result1 === a
const result2 = yield b; // result2 === b
return result + result2;
});
const result = await add(1, 2); // result === 3
Deletes the value with given key.
Optional options: AbortOptionsDeletes the values with given keys.
Optional options: AbortOptionsProtected entriesGets a value by key from the map.
Optional options: AbortOptionsGets the list of data identified by given keys.
Optional options: AbortOptionsReturns whether a key exists in the map.
Optional options: AbortOptionsChecks if given keys exist in the set.
Optional options: AbortOptionsPuts given list of values and returns their keys.
Optional options: AbortOptionsGenerated using TypeDoc
A content-addressable map store that persists values in a backing MaybeAsyncMap.