MCPcopy Index your code
hub / github.com/callstack/agent-device / withResolveTargetDeviceCacheScope

Function withResolveTargetDeviceCacheScope

src/core/dispatch-resolve.ts:215–218  ·  view source on GitHub ↗
(task: () => Promise<T>)

Source from the content-addressed store, hash-verified

213}
214
215export async function withResolveTargetDeviceCacheScope<T>(task: () => Promise<T>): Promise<T> {
216 if (resolveTargetDeviceCacheScope.getStore()) return await task();
217 return await resolveTargetDeviceCacheScope.run(new Map(), task);
218}
219
220export async function withDeviceInventoryProvider<T>(
221 provider: DeviceInventoryProvider | undefined,

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected