Skip to content

Instantly share code, notes, and snippets.

@kurt-liao
Last active July 20, 2022 13:20
Show Gist options
  • Save kurt-liao/7874bc7d5ab58f08b05e3f15f9523a60 to your computer and use it in GitHub Desktop.
Save kurt-liao/7874bc7d5ab58f08b05e3f15f9523a60 to your computer and use it in GitHub Desktop.
// awaiting.mjs
import { process } from "./some-module.mjs";
let output;
async function main() {
const dynamic = await import(computedModuleSpecifier);
const data = await fetch(url);
output = process(dynamic.default, data);
}
main();
export { output };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment