Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@yuuang/ffi-rs-darwin-x64

Package Overview
Dependencies
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yuuang/ffi-rs-darwin-x64 - npm Package Compare versions

Comparing version 1.0.64 to 1.0.65

2

package.json
{
"name": "@yuuang/ffi-rs-darwin-x64",
"version": "1.0.64",
"version": "1.0.65",
"os": [

@@ -5,0 +5,0 @@ "darwin"

@@ -26,2 +26,3 @@ # ffi-rs

- Provide many ways to handle pointer type directly 🐮
- Support run ffi task [in a new thread](#runInNewThread) 🤩️
- Support output [errno](#errno) info 🤔️

@@ -685,1 +686,23 @@

```
## runInNewThread
`ffi-rs` support run ffi task in a new thread without blocking the main thread which is useful for cpu intensive task.
To use the feature, you can pass `runInNewThread` option to load method
```js
const testRunInNewThread = async () => {
// will return a promise but the task will run in a new thread
load({
library: "libsum",
funcName: "sum",
retType: DataType.I32,
paramsType: [DataType.I32, DataType.I32],
paramsValue: [1, 2],
runInNewThread: true,
}).then(res => {
equal(res, 3)
})
}
```

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc