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