swiftwasm / JavaScriptKit

Swift framework to interact with JavaScript through WebAssembly.
https://swiftpackageindex.com/swiftwasm/JavaScriptKit/main/documentation/javascriptkit
MIT License
664 stars 44 forks source link

Add `withUnsafeBytesAsync` function to `JSTypedArray` #222

Closed fjtrujy closed 1 year ago

fjtrujy commented 1 year ago

Description

We could face some scenarios when the piece of code used inside of the withUnsafeBytes block could be async code, so this is why I have created this new function withUnsafeBytesAsync for such scenarios.

Cheers.