napi-rs/memory-testing
LongYinan 4719caa643
feat(napi): support Return generic of ThreadsafeFunction (#1997)
* feat(napi): support to use tuple with either (#1993)

`Either` uses `ValidateNapiValue` + `TypeName` to validate and report error on value not being matched. So there's no way to remove these super traits from it. So I implemented these types to `Tuple` types.

* feat(napi): support `Return` generic of ThreadsafeFunction

* depracate JsFunction

* CalleeHandled tsfn should handle Result in callback

* Pass env to call_with_return_value callback

* Fix compile

* clippy fix

* Fix electron test

* Function args

---------

Co-authored-by: Hana <andywangsy@gmail.com>
2024-03-20 21:37:08 +08:00
..
src feat(napi): support Return generic of ThreadsafeFunction (#1997) 2024-03-20 21:37:08 +08:00
buffer.mjs fix(napi): arraybuffer memory leak (#1420) 2023-01-09 14:47:36 +08:00
build.rs ci: add memory leak detect job 2021-05-29 23:24:25 +08:00
Cargo.toml test(napi): add memory tests for Reference 2022-04-13 13:24:53 +08:00
index.mjs test: Memory leak reproduction for futures 2022-12-28 21:19:01 +08:00
package.json chore: upgrade all dependencies (#1933) 2024-02-01 12:14:56 +08:00
reference.mjs test(napi): add memory tests for Reference 2022-04-13 13:24:53 +08:00
returns-future.mjs test: Memory leak reproduction for futures 2022-12-28 21:19:01 +08:00
serde.mjs test(napi): add memory tests for Reference 2022-04-13 13:24:53 +08:00
test-util.mjs test: add test file name into error message (#1821) 2023-11-20 15:56:20 +08:00
tokio-future.mjs test(napi): add memory tests for Reference 2022-04-13 13:24:53 +08:00
tsfn.mjs fix(napi): use Mutex instead of Atomic in ThreadSafeFunction 2022-07-10 00:07:56 +08:00
util.mjs test(napi): add memory tests for Reference 2022-04-13 13:24:53 +08:00