"Fossies" - the Fresh Open Source Software Archive
Member "deno-1.34.1/cli/tests/testdata/run/012_async.ts" (29 May 2023, 210 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 // Check that we can use the async keyword. 2 async functionmain() { 3 await newPromise((resolve) => { 4 console.log("2"); 5 setTimeout(resolve,100); 6 }); 7 console.log("3"); 8 } 9 10 console.log("1"); 11 main();