(fn: (...args: A) => R)
| 6 | * @returns function which runs in the newly created domain or in the existing one |
| 7 | */ |
| 8 | export function domainify<A extends unknown[], R>(fn: (...args: A) => R): (...args: A) => R | void { |
| 9 | return (...args) => withIsolationScope(() => fn(...args)); |
| 10 | } |
| 11 | |
| 12 | /** |
| 13 | * @param source function to be wrapped |
no test coverage detected