We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfad755 commit 714f7ecCopy full SHA for 714f7ec
node_api.go
@@ -126,3 +126,12 @@ func AcquireThreadsafeFunction(fn ThreadsafeFunction) Status {
126
C.napi_threadsafe_function(fn),
127
))
128
}
129
+
130
+func ReleaseThreadsafeFunction(
131
+ fn ThreadsafeFunction,
132
+) Status {
133
+ return Status(C.napi_release_threadsafe_function(
134
+ C.napi_threadsafe_function(fn),
135
+ C.napi_tsfn_release,
136
+ ))
137
+}
0 commit comments