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 Encoding #28

Open
DjDeveloperr opened this issue Nov 28, 2022 · 2 comments
Open

Async Encoding #28

DjDeveloperr opened this issue Nov 28, 2022 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@DjDeveloperr
Copy link
Owner

Just need to offload encoding to a separate thread and call with non blocking: true. It'll be useful for applications which handle concurrent requests and render images for them.

Also see: #27

@DjDeveloperr DjDeveloperr added enhancement New feature or request good first issue Good for newcomers labels Dec 16, 2022
@lino-levan
Copy link
Contributor

lino-levan commented Dec 19, 2022

Implementation-wise, this should be done with web workers right?

If so, we should probably mention that this breaks compatibility with deno compile

@DjDeveloperr
Copy link
Owner Author

Nope, workers aren't needed. We just need to add another FFI symbol definition that refers to same encoding symbol but with nonblocking: true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants