( action: () => ValueOrPromise<T>, finalAction: () => void, )
| 191 | * @typeParam T - Type for the return value |
| 192 | */ |
| 193 | export function tryWithFinally<T>( |
| 194 | action: () => ValueOrPromise<T>, |
| 195 | finalAction: () => void, |
| 196 | ): ValueOrPromise<T> { |
| 197 | return tryCatchFinally(action, undefined, finalAction); |
| 198 | } |
| 199 | |
| 200 | /** |
| 201 | * Try to run an action that returns a promise or a value with error and final |
no test coverage detected