( provider: DeviceInventoryProvider | undefined, task: () => Promise<T>, )
| 218 | } |
| 219 | |
| 220 | export 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 | |
| 228 | export async function withTargetDeviceResolutionScope<T>( |
| 229 | provider: DeviceInventoryProvider | undefined, |
no outgoing calls
no test coverage detected