what is the listOnTimeout function?