Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
catechu
· 15y ago · 0 comments
How can you check if nothing happened?
Comments
[–]
jacquesm
15y ago
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).