Implementing Synchronous Optional Callback Function #1591
Unanswered
vincent-herlemont
asked this question in
Q&A
Replies: 1 comment
-
I don't know if this way to do |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to implement a synchronous optional callback function using
napi
. I'm facing issues where I'm unable to find the typeF
in my current scope and my callback function is not being recognized as a function. Here's the code in question:Error
From the error messages, it seems that
F
is not recognized as a type and the callback function is not recognized as a function.My intention is to make the callback function optional and synchronous, as I do not wish to utilize
ThreadsafeFunction
if there's no way to make it synchronous. However, I'm not sure how to approach this issue.Any guidance or help would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions