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

Function withWebProvider

src/platforms/web/provider.ts:76–81  ·  view source on GitHub ↗
(
  provider: WebProvider | undefined,
  fn: () => Promise<T>,
)

Source from the content-addressed store, hash-verified

74}
75
76export async function withWebProvider<T>(
77 provider: WebProvider | undefined,
78 fn: () => Promise<T>,
79): Promise<T> {
80 return await webProviderScope.run(provider, fn);
81}

Callers 3

runAudioCommandFunction · 0.90

Calls

no outgoing calls

Tested by 1

runAudioCommandFunction · 0.72