mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -05:00
0d43a63636
Fixes #22840 Fixes #22964
9 lines
175 B
JavaScript
9 lines
175 B
JavaScript
export async function myFunction() {
|
|
await new Promise((resolve) =>
|
|
setTimeout(() => {
|
|
postMessage("hallo");
|
|
resolve;
|
|
}, 100)
|
|
);
|
|
}
|
|
await myFunction();
|