UNPKG
accordant
Version:
latest (0.3.5)
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.1
0.2.0
0.1.1
0.1.0
0.0.0
One way shared/worker async bindings
github.com/WebReflection/accordant
WebReflection/accordant
accordant
/
src
/
references.js
7 lines
(5 loc)
•
157 B
JavaScript
View Raw
1
2
3
4
5
6
7
export
const
references =
new
Set
;
export
const
send
= (
name, args
) => {
for
(
const
wr
of
references) wr.
deref
()?.
postMessage
([
true
, name, args]); };