mirror of
https://github.com/denoland/deno.git
synced 2024-12-19 05:45:09 -05:00
10 lines
175 B
JavaScript
10 lines
175 B
JavaScript
|
export async function myFunction() {
|
||
|
await new Promise((resolve) =>
|
||
|
setTimeout(() => {
|
||
|
postMessage("hallo");
|
||
|
resolve;
|
||
|
}, 100)
|
||
|
);
|
||
|
}
|
||
|
await myFunction();
|