Creates a setTimeout function that works like window.setTimeout, but subsequent calls clear the previous if still
incomplete and cleanup on unmount is handled automatically. Also provides pauseTimeout and resumeTimeout
functions for managing existing timeouts.
Creates a
setTimeoutfunction that works likewindow.setTimeout, but subsequent calls clear the previous if still incomplete and cleanup on unmount is handled automatically. Also providespauseTimeoutandresumeTimeoutfunctions for managing existing timeouts.