MCPcopy Index your code
hub / github.com/DeepNotesApp/DeepNotes / mhgetCoalesceAsync

Method mhgetCoalesceAsync

apps/client/src/code/realtime/context.ts:20–32  ·  view source on GitHub ↗
(items: [DataPrefix, string, string][])

Source from the content-addressed store, hash-verified

18 }
19
20 async mhgetCoalesceAsync(items: [DataPrefix, string, string][]) {
21 internals.realtime.markAsDependencies(
22 items.map((item) => getFullKey(...item)),
23 );
24
25 for (const item of items) {
26 const value = await this.hgetAsync(item[0] as any, item[1], item[2]);
27
28 if (value != null) {
29 return value;
30 }
31 }
32 }
33 async mhgetAsync(items: [DataPrefix, string, string][]) {
34 return await Promise.all(
35 items.map(([prefix, suffix, field]) =>

Callers 3

mhgetCoalesceMethod · 0.80

Calls 3

getFullKeyFunction · 0.90
markAsDependenciesMethod · 0.80
hgetAsyncMethod · 0.80

Tested by

no test coverage detected