HF RL Explorer

Feature Request: Custom Serialization to Preserve Class Instances Across Threads

Feature Request: Custom Serialization to Preserve Class Instances Across Threads: a task in LegoFlow-SWE (Harbor dataset). Instances of user-defined classes lose their prototype and methods when transferred between threads via .postMessage() . For example, passing a Foo class instance to a worker…

The task

Instances of user-defined classes lose their prototype and methods when transferred between threads via `.postMessage()`. For example, passing a `Foo` class instance to a worker currently yields only a plain object with the instance properties; the resulting object is no longer a `Foo` and cannot call…

Part of Lego-X/LegoFlow-SWE.