Besides taking the limit of a function, you can take the limit of any relation, thought of as a multi-valued function. Recall that $ \lim _ { x \to x _ 0 } y = L $, where $ y = f ( x ) $ for some function $ f $, means that there is a unique $ L $ such that, for each $ \epsilon > 0 $, for some $ \delta > 0 $, for each $ x $ in the domain of $ f $, if $ 0 < \lvert x - x _ 0 \rvert < \delta $ and $ y = f ( x ) $, then $ | y - L | < \epsilon $. Compared to what you'll usually see in Calculus textbooks, I wrote $ y $ instead of $ f ( x ) $, so that I had to throw in the statement that $ y = f ( x ) $, but this is obviously equivalent. To avoid dummy variables, we can also say that $ L $ is the limit of $ f $ approaching $ x _ 0 $.
Similarly, $ \lim _ { x \to x _ 0 } y = L $, where now $ R ( x , y ) $ for some relation $ R $, means that there is a unique real number $ L $ such that, for each $ \epsilon > 0 $, for some $ \delta > 0 $, for each $ x $ in the domain of $ R $, if $ 0 < \lvert x - x _ 0 \rvert < \delta $ and $ R ( x , y ) $, then $ | y - L | < \epsilon $. Compared to the previous statement, I replaced $ y = f ( x ) $ with $ R ( x , y ) $, and otherwise this is identical. To avoid dummy variables again, we now say that $ L $ is the limit of $ R $ approaching $ x _ 0 $. Of course, if $ R $ is a functional (single-valued) relation, then this agrees with the previous paragraph.
For a simple example, let $ R ( x , y ) $ mean that $ \lvert x \rvert = \lvert y \rvert $, or $ y = \pm x $ to look like a multi-valued function. Note that every real number is in the domain of $ R $. Then $ \lim _ { x \to 0 } ( \pm x ) = 0 $, because for each $ \epsilon > 0 $, for some $ \delta > 0 $ (such as $ \delta = \epsilon $ in this case), for each real number $ x $, if $ 0 < \lvert x - 0 \rvert < \delta $ and $ y = \pm x $, then $ \lvert y - 0 \rvert < \epsilon $.
For the Riemann integral, $ R ( x , y ) $ means that $ y $ is the value of a Riemann sum whose partition has norm $ x $; it might be good to use different variables names here, so I'll use $ n $ (for norm) and $ S $ (for sum) instead. The domain of this relation (the set of possible norms) is the set of positive numbers. So, to say that $ L $ is the limit of $ R $ approaching $ 0 $ is to say that, for each $ \epsilon > 0 $, for some $ \delta > 0 $, for each positive number $ N $, if $ 0 < \lvert N - 0 \rvert < \delta $ and $ I $ is the value of a Riemann sum whose partition has norm $ N $, then $ | I - L | < \epsilon $. Since $ N $ is positive, we can simplify $ 0 < \lvert N - 0 \rvert < \delta $ to $ N < \delta $, and now we have the usual definition of the Riemann integral.