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

Update documentation and examples to async/await #842

Closed
k-miras opened this issue Jun 25, 2018 · 4 comments
Closed

Update documentation and examples to async/await #842

k-miras opened this issue Jun 25, 2018 · 4 comments

Comments

@k-miras
Copy link

k-miras commented Jun 25, 2018

Type of issue

Feature request

It's kinda hard to understand where to use async/await in code

@SBoudrias
Copy link
Member

@k-miras could you send us the link of which documentation is confusing? There's a lot of documentation, so it's hard to know which one is causing you trouble.

@k-miras
Copy link
Author

k-miras commented Jun 25, 2018

@SBoudrias

  1. http://yeoman.io/authoring/running-context.html - part about async tasks. How it works with async/await?
  2. http://yeoman.io/authoring/user-interactions.html - part about user prompts with Inquirer.js. If it returns promise, is it possible to use multiple this.prompt() and handle it with async/await in one prompt method?
  3. Question not related to async/await - is it possible to write an example with multiple prompt methods and show execution sequence of them in http://yeoman.io/authoring/user-interactions.html ? I know that methods are queued and executed by it's name, but I get that later on reading documentation at http://yeoman.io/authoring/running-context.html

By the way, thanx for fast response

@flyinbutrs
Copy link

I realize this is a very old bug/help request, but I have the same issue, essentially. What I'm trying to wrap my head around is how to make sure that something in my writing() section is fully executed before my install() section runs, because in this case I'm editing package.json, but it's running npm install before I've finished updating it.

@JoshuaKGoldberg JoshuaKGoldberg transferred this issue from yeoman/yo Jan 23, 2025
@JoshuaKGoldberg JoshuaKGoldberg changed the title Update documentation and examples to Node.js 8 async/await Update documentation and examples to async/await Jan 24, 2025
@JoshuaKGoldberg
Copy link
Contributor

These pages have since been rewritten to explicitly mention async/await. https://yeoman.io/authoring/user-interactions.html in particular directly uses async methods. Closing this issue out as resolved - but if there are specific changes anybody would like to suggest, please do file a new issue explaining them. Cheers! 🎩

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

No branches or pull requests

4 participants