]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
Nodejs Addon blocking main thread. Implemented Napi::AsyncWorker (#642)
authorLucas Zanek <redacted>
Wed, 22 Mar 2023 20:19:22 +0000 (17:19 -0300)
committerGitHub <redacted>
Wed, 22 Mar 2023 20:19:22 +0000 (22:19 +0200)
commit21165580a16cea8019fbe31d3c5156053ba6b784
tree783df55b844523626f3de0f209b78469692a77a7
parent1d749919e392f0d57a611b22bb14047a8931674f
Nodejs Addon blocking main thread. Implemented Napi::AsyncWorker (#642)

* fixed blocking code on node addon

* modify the example to run async

* format

* added logic to see the whisper output

* added logic to see the whisper output

* removed extra function for more clean example
examples/addon.node/addon.cpp
examples/addon.node/index.js