HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by catechu | Hacker News Reader
Parent
Full thread
catechu
·
How can you check if nothing happened?
View on HN
jacquesm
·
By changing some global variable in the callback and checking if it has changed in 'somethinghappened' (which only gets called after 5 seconds, giving the callback time enough to get called).
Reply on news.ycombinator.com