This MR brings in a new polyscriptworkers export which allows workers to be named and be retrieved without sync indirections. If the worker code has an __export__ = ["method_1", "other_method"] defined in it those methods will be attached to sync out of the box and provided back as worker utility, bypassing all other sync possibilities, yet improving DX around this topic.
This MR brings in a new polyscript
workers
export which allows workers to be named and be retrieved without sync indirections. If the worker code has an__export__ = ["method_1", "other_method"]
defined in it those methods will be attached to sync out of the box and provided back as worker utility, bypassing all othersync
possibilities, yet improving DX around this topic.