(keys: ReadonlyArray<unknown>)
| 107 | get.addFinalizer(() => clearQueryReadDependencies(key)) |
| 108 | return get(atom) |
| 109 | }, { initialValueTarget: atom }) |
| 110 | |
| 111 | const atomsForKeys = (keys: ReadonlyArray<unknown>): ReadonlyArray<Atom.Atom<AsyncResult.AsyncResult<any, any>>> => { |
| 112 | const atoms = new Set<Atom.Atom<AsyncResult.AsyncResult<any, any>>>() |
| 113 | for (const key of keys) { |
| 114 | const set = keyAtoms.get(Hash.hash(key)) |
| 115 | if (set) { for (const a of set) atoms.add(a) } |
| 116 | } |
| 117 | return [...atoms] |
| 118 | } |
| 119 |
no test coverage detected
searching dependent graphs…