Executes a function after a specified timeout and returns a disposer function that can be used to cancel the timeout.
The function to execute after the timeout.
The timeout duration in milliseconds (default: 0).
A disposer function that can be used to cancel the timeout.
Executes a function after a specified timeout and returns a disposer function that can be used to cancel the timeout.