• Parameters

    Returns Promise<ItemID> | ItemID

    The itemId of the item to be removed instead of the original itemId 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.

    A hook that is triggered before getAndRemove() operation.