-
Notifications
You must be signed in to change notification settings - Fork 12
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
Labels
Comments
❓ Confused what you are asking for 😕 Do we have to change our implementations at all for JSTransformers to be compatible with |
@calebeby no. @RobLoach is talking about that we should make a note for users for the var md = require('jstrasformer')(require('jstransformer-marked')
async function myAsyncFn () {
const res = await md.renderAsync('some md')
console.log(res.body)
} I believe :) |
Ah. Ok
…On Mon, Jan 16, 2017 at 9:09 PM, Charlike Mike Reagent < ***@***.***> wrote:
@calebeby <https://github.com/calebeby> no. @RobLoach
<https://github.com/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 () {
await md.renderAsync('some md')
}
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#191 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMmFoQtmGv0LELr4w737bwBahcZnHwT_ks5rTEzxgaJpZM4LlDOQ>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add docs on how to use this with async/await.
The text was updated successfully, but these errors were encountered: