WebReflection / coincident

An Atomics based Proxy to simplify, and synchronize, Worker related tasks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

main thread cannot pass in array

bugzpodder opened this issue · comments

in the main thread I have:

Xworker.sync.results = ['a', 'b', 'c']
and it doesn't seem like python can access this. Had to do:
Xworker.sync.getResults = () => ['a', 'b', 'c']

is there a way to get all the keys of xworker.sync on the python side? the reason i am passing in this array from js is that I want to get a list of keys from xworker.sync in python. I tried things like values()/entries() etc none worked.

This feels like a duplicate of this #20 (comment)

To be more explicit, any Python related bug in here will be closed as this module is not about Python. This module is used by polyscript and polyscript has its own rules and features. If you think something doesn't work with foreign programming languages please always file a bug in polyscript, not here, as here Python doesn't exist in the first place as the goal of this project is to enable Atomics via Proxies.