Re:A proposal to add signals to JavaScript
by lelandfe on Sunday March 31, 2024 @06:46PM
(#39888852)
Node has EventEmitter: https://nodejs.org/en/learn/asynchronous-work/the-nodejs-eve...
See, for instance, https://www.electronjs.org/docs/latest/api/ipc-renderer
Re:A proposal to add signals to JavaScript
by briantakita on Monday April 01, 2024 @10:49AM
(#39894717)
Browser environments don't have EventEmitter. Different event APIs between browsers & nodejs. A library (3rd party or custom) is needed to make event code isomorphic.
It only works in browser environments.