user: log engaged activity after 1 min

From this code, it looks like we set a user to anonymous initially, then somewhere we setMe to the actual user if they're logged in. 

In this case since we're waiting a minute, so the non-anon user will be set by then, but if I call something similar to user.logEngagedActivity early on, how can I have a guarantee that the update for that is going to the logged in user, not the default anon user?