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

async/await #191

Open
RobLoach opened this issue Jan 16, 2017 · 3 comments
Open

async/await #191

RobLoach opened this issue Jan 16, 2017 · 3 comments

Comments

@RobLoach
Copy link
Member

Add docs on how to use this with async/await.

@calebeby
Copy link
Member

❓ Confused what you are asking for 😕

Do we have to change our implementations at all for JSTransformers to be compatible with async/await?

@tunnckoCore
Copy link
Member

tunnckoCore commented Jan 17, 2017

@calebeby no. @RobLoach is talking about that we should make a note for users for the *Async methods that they can use it with combination with async/await syntax.

var md = require('jstrasformer')(require('jstransformer-marked')

async function myAsyncFn () {
  const res = await md.renderAsync('some md')
  console.log(res.body)
}

I believe :)

@calebeby
Copy link
Member

calebeby commented Jan 17, 2017 via email

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

4 participants