(def, args)
| 6429 | } |
| 6430 | |
| 6431 | const peek: CacheInternals["peek"] = (def, args) => { |
| 6432 | const registered = register(def) |
| 6433 | const argsKey = registered.argsKey(args) |
| 6434 | let entry = lookup(registered, argsKey) |
| 6435 | if (entry === undefined) { |
| 6436 | // Only a saved value makes an entry here. It idles out like any other. |
| 6437 | const saved = savedOf(registered, argsKey) |
| 6438 | if (saved !== undefined) { |
| 6439 | afterQuiet(entry = ensureEntry(registered, args, argsKey, saved)) |
| 6440 | } |
| 6441 | } |
| 6442 | return entry === undefined ? AsyncResult.initial() : view(entry) |
| 6443 | } |
| 6444 | |
| 6445 | /** Waits for a caller-only fetch, joining the one in flight. */ |
| 6446 | const getShared = (entry: Entry, build: Build): Effect.Effect<any, any> => |
nothing calls this directly
no test coverage detected