Skip to content

Commit cfad755

Browse files
feat(node_api): add AcquireThreadsafeFunction
1 parent 0ba398b commit cfad755

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

node_api.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,9 @@ func CallThreadsafeFunction(
120120
C.napi_tsfn_blocking,
121121
))
122122
}
123+
124+
func AcquireThreadsafeFunction(fn ThreadsafeFunction) Status {
125+
return Status(C.napi_acquire_threadsafe_function(
126+
C.napi_threadsafe_function(fn),
127+
))
128+
}

0 commit comments

Comments
 (0)