iandis / isolated_worker

An isolated worker for Flutter (Isolate) and Web (Web Worker). Behaves almost the same as the compute function, except it is not a one-off worker.
MIT License
42 stars 11 forks source link

Question: is it possible to launch worker on js code, compiled with dart2js? #17

Open radzish opened 2 years ago

radzish commented 2 years ago

If possible, any guide how to do that?

iandis commented 2 years ago

I haven't tried yet, but I assume as long as the dart code does not make any calls to the DOM, it might be possible

duck-dev-go commented 2 years ago

+1

tomekit commented 9 months ago

This is really interesting question. If there is only documented way to compile module to callable JS, which would then be called by this package... it would be really powerful.