"Fossies" - the Fresh Open Source Software Archive

Member "deno-1.34.1/cli/tests/testdata/run/004_set_timeout.ts" (29 May 2023, 165 Bytes) of package /linux/www/deno-1.34.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) TypeScript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 setTimeout(() => {
    2   console.log("World");
    3 }, 10);
    4 
    5 console.log("Hello");
    6 
    7 const id = setTimeout(() => {
    8   console.log("Not printed");
    9 }, 10000);
   10 
   11 clearTimeout(id);