Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Top-level await #7710

Open
goodmind opened this issue May 8, 2019 · 1 comment
Open

Top-level await #7710

goodmind opened this issue May 8, 2019 · 1 comment

Comments

@goodmind
Copy link
Contributor

goodmind commented May 8, 2019

Proposal

https://github.com/tc39/proposal-top-level-await

Use case

// awaiting.mjs
import { process } from "./some-module.mjs";
const dynamic = import(computedModuleSpecifier);
const data = fetch(url);
export const output = process((await dynamic).default, await data);
@noahehall
Copy link

this is available in nodejs! looking forward to flow supporting it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants