Wait for the promise to resolve or reject and then call the finallyFn. If the passed promise argument is not a promise the callback will be called synchronously with the value. If the passed promise doesn't implement finally then a finally implementation will be simulated using then(..., ...).
Wait for the promise to resolve or reject and then call the finallyFn. If the passed promise argument is not a promise the callback will be called synchronously with the value. If the passed promise doesn't implement finally then a finally implementation will be simulated using then(..., ...).
Wait for the promise to resolve or reject and then call the finallyFn. If the passed promise argument is not a promise the callback will be called synchronously with the value. If the passed promise doesn't implement finally then a finally implementation will be simulated using then(..., ...).
Param: value
The value or promise like value to wait for
Param: finallyFn
The finally function to call once the promise has resolved or rejected