Is the generation of invitation links secure against data races?

I am moving this topic to Development because it is a developer question.

I am not a developer myself but do know that Discourse is used by many thousands of sites with many millions of users, and I have never heard of any case where an invitation got lost. Discourse is a platform that is built for scale.