Function safeExecuteInTheMiddle
safeExecuteInTheMiddle<T>( execute: () => T, onFinish: (e: undefined | Error, result: undefined | T) => void, preventThrowingError?: boolean,): T Parameters
- execute: () => T
- onFinish: (e: undefined | Error, result: undefined | T) => void
Optional
preventThrowingError: boolean
Returns T
function to execute patched function and being able to catch errors