Returns true if there is an active timeout pending.
Clears the existing timeout.
Clears the timeout and throws an error if a new one is attempted to be set.
Sets a timeout, clearing any existing timeout first.
The callback to invoke after the given time has elapsed.
Optionaltime: numberThe amount of time to wait, in seconds.
A TimeoutSlot provides a way to have a managed window timeout that can be added to a disposer, and guarantee that there is only one timeout active at a time.