(task: () => Promise<T>)
| 213 | } |
| 214 | |
| 215 | export 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 | |
| 220 | export async function withDeviceInventoryProvider<T>( |
| 221 | provider: DeviceInventoryProvider | undefined, |
no outgoing calls
no test coverage detected