려니/으려니
when about to / intending to
Explanation
려니/으려니 is an ending connecting an intended action to the feeling or difficulty it brings up: now that I’m about to …, when I try to …. This use shortens 려고 하니.
Describe how facing an action feels
Use 려니 after a vowel or final ㄹ, and 으려니 after other consonants. Then say what feeling or difficulty arises.
Say what you assume
There’s another common use in -(으)려니 하다. Here you take something for granted or assume it will turn out a certain way. Imagine you waited for a friend without calling first.