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 calls #2

Open
janroures opened this issue May 8, 2024 · 1 comment
Open

Async calls #2

janroures opened this issue May 8, 2024 · 1 comment

Comments

@janroures
Copy link

Hi, are there any plans to make the "generate" method asynchronous? It can block the UI up to 10 seconds if computed in the front-end. Thank you.

@komeilmehranfar
Copy link
Owner

I think It depends on how you can implement it.
for example, maybe you can wrap the generate method behind an API-endpoint or use tools to run the code on workers.
Look at this repo: https://github.com/developit/workerize

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