Files
cell/scripts/core/io.js
John Alanbrook 8cf114cbb4
Some checks failed
Build and Deploy / package-dist (push) Has been cancelled
Build and Deploy / deploy-itch (push) Has been cancelled
Build and Deploy / deploy-gitea (push) Has been cancelled
Build and Deploy / build-windows (CLANG64) (push) Has been cancelled
Build and Deploy / build-linux (push) Has been cancelled
io actor
2025-03-23 04:46:16 -05:00

16 lines
276 B
JavaScript

$_.unneeded(_ => {
}, Infinity)
var subscribers = []
$_.receiver(e => {
if (e.type === "subscribe") {
if (!e.actor) throw Error('Got a subscribe message with no actor.');
subscribers.push(e.actor)
return
}
for (var a of subscribers)
$_.send(a, e)
});