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

Add support for async processor #1694

Open
Plawn opened this issue Apr 14, 2023 · 1 comment
Open

Add support for async processor #1694

Plawn opened this issue Apr 14, 2023 · 1 comment

Comments

@Plawn
Copy link

Plawn commented Apr 14, 2023

I want to use async function in a processor to fetch an external resource but I can't seem to use an async function.

Having an async processor would make extending the base processor way easier

Thanks !

@ggrossetie
Copy link
Member

I agree but Asciidoctor.js is transpiled from Ruby and basically it's not possible (very hard) to support async functions. You can take a look at https://github.com/ggrossetie/unxhr in order to make synchronous HTTP requests in Node.

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

2 participants