You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should probably start using promises/futures for our StackOverflow API calls. Right now, the behavior is really unpredictable (read as "completely wrong")
For instance, the function getLastActivityTime in watcher.js doesn't actually wait for getting the last activity time, and always ends up adding 0 as the last known time.
We could fix this by
Passing userId to the function
Updating the watcher in getLastActivityTime inside the callback itself, and return nothing
but that's just bad design imho.
Solutions:
Use promises/futures
Use a better rest client
The text was updated successfully, but these errors were encountered:
We should probably start using promises/futures for our StackOverflow API calls. Right now, the behavior is really unpredictable (read as "completely wrong")
For instance, the function
getLastActivityTime
inwatcher.js
doesn't actually wait for getting the last activity time, and always ends up adding 0 as the last known time.We could fix this by
userId
to the functiongetLastActivityTime
inside the callback itself, and return nothingbut that's just bad design imho.
Solutions:
The text was updated successfully, but these errors were encountered: