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

Function withDeviceInventoryProvider

src/core/dispatch-resolve.ts:220–226  ·  view source on GitHub ↗
(
  provider: DeviceInventoryProvider | undefined,
  task: () => Promise<T>,
)

Source from the content-addressed store, hash-verified

218}
219
220export async function withDeviceInventoryProvider<T>(
221 provider: DeviceInventoryProvider | undefined,
222 task: () => Promise<T>,
223): Promise<T> {
224 if (!provider) return await task();
225 return await deviceInventoryProviderScope.run(provider, task);
226}
227
228export async function withTargetDeviceResolutionScope<T>(
229 provider: DeviceInventoryProvider | undefined,

Calls

no outgoing calls

Tested by

no test coverage detected