Clears the timeout with the specified TimeoutID. If the timeout has already completed or the TimeoutID is invalid, this method does nothing.
Optional
Lens Scripting Version 364
const timeoutId = setTimeout(function() { print("This will not run.");}, 1000);clearTimeout(timeoutId); Copy
const timeoutId = setTimeout(function() { print("This will not run.");}, 1000);clearTimeout(timeoutId);
Cancels a Timeout object created by setTimeout().
Timeout
setTimeout()
v0.0.1
Clears the timeout with the specified TimeoutID. If the timeout has already completed or the TimeoutID is invalid, this method does nothing.