NAPI support warning may be too general #110
Closed
alcuadrado
started this conversation in
General
Replies: 2 comments
|
You can run native modules that use NAPI inside Tinypool's workers. It's just The mention of it in documentation indeed seems weird. We should probably replace it with something like: - ❌ No NAPI
+ ❌ No OS specific thread priority setting |
0 replies
|
Thanks for answer. I just sent a PR changing it: #111 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hey,
I was looking at this library to consider using it, but the warning about NAPI got me confused. It seems to indicate that you can't run NAPI modules inside workers using
tinypool, but as far as I tested it, you can. Both withworker_threadsandchild_process.After reading a bit more about
piscina, they useNAPIto accessnice(2)on Linux, whichtinypooldoesn't. Is this the only limitation that the warning was directed at? Or is there anything else regarding NAPI that I should take a look at.Thanks!
All reactions