New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support isolate #52
Comments
This would be great, I have a process that does a lot of processing (unfortuantely in JS). |
If you do not need xhr, you can pass false to the xhr parameter of getJavascriptRuntime() and it will not try to access the root bundle: If you do this, it will work in an isolate. |
By now I think it is the best suitable solution. I would have to dig more and change the way we load the polyfills to xhr and fetch, so it doesn't rely in access rootBundle (put them fixed as strings into the code would be the solution) |
My JS code is enormous computation. I have to call it on non-main isolate. But I can't do it cause of a crash: "Unhandled Exception: Exception: Null check operator used on a null value". The reason is spawned isolates do not have access to the root bundle flutter/flutter#61480 (comment)
This demo shows what I want.
The text was updated successfully, but these errors were encountered: