diff options
| author | Divy Srivastava <dj.srivastava23@gmail.com> | 2023-01-12 04:47:55 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-12 13:47:55 +0100 |
| commit | dd2829be0c1f5c40ec38a045ea0a14bec34a82c5 (patch) | |
| tree | 83cfa62a784ecb0fdada7ce556998d1d7247fa0a /test_napi/src/lib.rs | |
| parent | cc806cdf2121878ae4c10b1fd0c4c03b14ba33c7 (diff) | |
fix(napi): Implement `napi_threadsafe_function` ref and unref (#17304)
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'test_napi/src/lib.rs')
| -rw-r--r-- | test_napi/src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test_napi/src/lib.rs b/test_napi/src/lib.rs index 3a28e4471..025fbf5d2 100644 --- a/test_napi/src/lib.rs +++ b/test_napi/src/lib.rs @@ -17,6 +17,7 @@ pub mod primitives; pub mod promise; pub mod properties; pub mod strings; +pub mod tsfn; pub mod typedarray; #[macro_export] @@ -126,6 +127,7 @@ unsafe extern "C" fn napi_register_module_v1( object_wrap::init(env, exports); callback::init(env, exports); r#async::init(env, exports); + tsfn::init(env, exports); init_cleanup_hook(env, exports); exports |
