Afraid as an adjective means ‘feeling fear’. We use it with of + noun, of + -ing form, a to-infinitive or a that-clause Cambridge Dictionary
We can use of +ing or to-infinitive with afraid, how to know what we should use?
Which one of the following is correct? what is the difference in meaning between them?
I hurried to the station. I was afraid to miss my train.
I hurried to the station. I was afraid of missing my train.