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 Support #332

Open
Benjscho opened this issue Jul 19, 2023 · 1 comment
Open

Async Support #332

Benjscho opened this issue Jul 19, 2023 · 1 comment

Comments

@Benjscho
Copy link

Hi there,

I'm running into an issue trying to use comrak::parse_document in an async function due to the use of RefCell in the AstNode type. I was wondering if anyone had run into this before and if there were any workarounds for using parse_document in an async (Send) context?

Thanks for creating a fantastic crate!

@kivikakk
Copy link
Owner

Hi! Sorry for not getting back to you (much) sooner. I haven't attempted this myself, and I'm assuming no-one else has — or at least, no-one else has succeeded.

If there's a concrete example you can share, that would help! I don't do much with async these days and so I'm not sure exactly what you're running into.

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