swiftwasm / JavaScriptKit

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

Add async JSPromise.result property #200

Closed kateinoigakukun closed 2 years ago

kateinoigakukun commented 2 years ago

Add JSPromise.result, which is similar with Task.result

github-actions[bot] commented 2 years ago

Time Change: -172ms (0%)

Total Time: 17,509ms

Test name Duration Change
Serialization/Write JavaScript number directly 391ms -44ms (11%) 👏
Serialization/Write JavaScript string directly 436ms -41ms (9%)
View Unchanged | Test name | Duration | Change | | :--- | :---: | :---: | | Serialization/Swift Int to JavaScript | 5,535ms | -63ms (1%) | | Serialization/Swift String to JavaScript | 5,718ms | -62ms (1%) | | Object heap/Increment and decrement RC | 5,430ms | +38ms (0%) |