deno / 1.23.2 / ~ / cleartimeout.html /

clearTimeout

Cancels a scheduled action initiated by setTimeout()

const id = setTimeout(() => {console.log('hello');}, 500);
// ...
clearTimeout(id);
function clearTimeout( id?: number) : void;
clearTimeout( id?: number) : void

Parameters

id?: number optional

Return Type

void

© 2018–2022 the Deno authors
https://doc.deno.land/deno/stable/~/clearTimeout