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
Hi,
I am trying to port one of my packages from the legacy-runtime to the napi-runtime but I am currently blocked because the EventHandler constructor is not implemented.
What is the current status of EventHandler with the napi-runtime?
I've seen the PR#622: Threadsafe Handles and it seems like it would offer an alternative solution for use-cases involving EventHandler. Is it planned to supersede it?
In my use case I use EventHandler to notify JS when a tokio task completes.
The text was updated successfully, but these errors were encountered:
@demurgos You are correct that Threadsafe Handles are meant to supersede EventHandler. We may implement EventHandler on top of it to help with migration, but if we do, it will be marked as deprecated and cause a compiler warning.
Hi,
I am trying to port one of my packages from the
legacy-runtime
to thenapi-runtime
but I am currently blocked because theEventHandler
constructor is not implemented.What is the current status of
EventHandler
with thenapi-runtime
?I've seen the PR#622: Threadsafe Handles and it seems like it would offer an alternative solution for use-cases involving
EventHandler
. Is it planned to supersede it?In my use case I use
EventHandler
to notify JS when a tokio task completes.The text was updated successfully, but these errors were encountered: