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 to AbortSignal.aborted (a boolean) to the C code, which runs async work.
Right now, I’m using a bool pointer and an addEventListener to update the value, but this hurts performance. Is there a way to directly reference aborted?
Thanks!
The text was updated successfully, but these errors were encountered:
Could you use a property accessor? Create an Object in C++ that has an accessor (which is a function) that returns a Boolean::New(env, AbortSignal.aborted ) ?
Not sure if it is the right place...
I’m working with an
AbortSignal
and some C code (extern "C"
). I need to pass a reference toAbortSignal.aborted
(a boolean) to the C code, which runs async work.Right now, I’m using a
bool
pointer and anaddEventListener
to update the value, but this hurts performance. Is there a way to directly referenceaborted
?Thanks!
The text was updated successfully, but these errors were encountered: