You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m working with an AbortSignal and some C code (extern "C"). I need to pass a reference of AbortSignal.aborted (a boolean) to the C code, which is running in async work.
Right now, I’m using a bool * and addEventListener in C++ with NAPI to update the boolean pointer which is passed to the C code, but this hurts performance. Is there a way to directly reference aborted from C?
Thanks!
Minimal Reproduction
No response
Output
No response
Before You Submit
I have looked for issues that already exist before submitting this
Node.js Version
v22.13.1
NPM Version
v10.9.2
Operating System
MacOS Sequoia 15.2
Subsystem
Other
Description
I’m working with an
AbortSignal
and some C code (extern "C"
). I need to pass a reference ofAbortSignal.aborted
(a boolean) to the C code, which is running in async work.Right now, I’m using a
bool *
andaddEventListener
in C++ with NAPI to update the boolean pointer which is passed to the C code, but this hurts performance. Is there a way to directly referenceaborted
from C?Thanks!
Minimal Reproduction
No response
Output
No response
Before You Submit
The text was updated successfully, but these errors were encountered: