domenic / proposal-blocks

Former home of a proposal for a new syntactic construct for serializable blocks of JavaScript code
215 stars 5 forks source link

Further underline that this feature is largely syntactic #22

Open domenic opened 6 years ago

domenic commented 6 years ago

That is, we're not proposing adding workers to the JS language. How a given blöck is run is up to its tag function, giving flexibility for many things you could do with them. E.g. dedicatedWorker{| ... |} vs. threadPool{| ... |} vs. crossOriginIFrame{| ... |} vs. inAComputeCluster{| ... |}.

Probably this consists of both: