lenze
cross instance state replication with function invoking
Usage
In thread 1:
var Lenze = ; var lenze = ; statex = 10; state{ console;};
In main thread:
var Lenze = ; var worker = "thread1.js"; var lenze = Lenze; // Called when the replicant gets state/change for the first time.lenze; // Called when any state changes within the lenze. (probably often);lenze;
Notes
- Instance references (objects/function) are maintained.
This is a very experimental. The code is very messy and not optimised. There are many TODOs floating around my head.