/Engine/Source/Runtime/Core/Public/Async/EventCount.h
Acquiring a token before checking the condition avoids a race because Wait returns immediately when the token no longer matches the notification count.
template<typename CounterType> class TEventCount