Function metricScopeDummy
- metricScopeDummy<T, U>(handler): ((...args) => Promise<T>)
-
Type Parameters
-
T
-
U extends readonly unknown[]
Parameters
-
handler: ((m) => ((...args) => T | Promise<T>))
-
- (m): ((...args) => T | Promise<T>)
-
Returns ((...args) => T | Promise<T>)
-
- (...args): T | Promise<T>
-
Returns T | Promise<T>
Returns ((...args) => Promise<T>)
-
- (...args): Promise<T>
-
Returns Promise<T>
An asynchronous wrapper that provides a dummy metrics logger.