skia_canvas icon indicating copy to clipboard operation
skia_canvas copied to clipboard

Async Encoding

Open DjDeveloperr opened this issue 2 years ago • 2 comments

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 avatar Nov 28 '22 05:11 DjDeveloperr

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

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

lino-levan avatar Dec 19 '22 04:12 lino-levan

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

DjDeveloperr avatar Dec 19 '22 16:12 DjDeveloperr