The original pushObject to be used.
The pushObject to be used instead of the original pushObject specified by the caller. Returning a rejected promise will block the operation and will return a rejected promise to the caller as well as trigger the onFailure() hook.
onFailure()
A hook that is triggered before push() operation.
push()
The original pushObject to be used.