mirror of
https://github.com/denoland/deno.git
synced 2024-12-30 11:16:38 -05:00
9837d324a7
and update to prettier 1.19 Also, update `assert()` and remove not null assertions where possibly in `cli`. Closes #3273
11 lines
231 B
TypeScript
11 lines
231 B
TypeScript
// Check that we can use the async keyword.
|
|
async function main(): Promise<void> {
|
|
await new Promise((resolve): void => {
|
|
console.log("2");
|
|
setTimeout(resolve, 100);
|
|
});
|
|
console.log("3");
|
|
}
|
|
|
|
console.log("1");
|
|
main();
|