In Firebase Auth, when you create a new user account it logs them in automatically, but without a
displayName. If I call
firebase.auth().currentUser.displayName (in JS) too quickly, I get
null. I need to delay a couple seconds at least and then retrieve the name. I could do this in JS with
setTimeout, but I’d like to do as much as possible in Seed.
What is the proper way to call a function after a time delay in Seed? Elm has a mechanism like this for its
Process.sleep time |> Task.perform (\_ -> DelayedMsg)
Something similar in Seed?