You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 27, 2021. It is now read-only.
I just realized it's not just that, but also the fact that IsolateRunner.run() takes a closure and Isolates on the web can't serialize closures.
Since IsolateRunner doesn't provide any function to send/receive values (like with the underlying isolate receivePort/sendPort architecture), it's not useful on the web even if the developer chooses to use it manually (using IsolateRunner() constructor instead of IsolateRunner.spawn()).
Since this package uses Isolate.spawn, it won't work for web apps (unless those apps use it in a non-DOM isolate). dart-lang/sdk#17649
This should be mentioned prominently in the readme, lest we frustrate people who try this package for this very reason.
I can prepare the PR if you agree with this.
The text was updated successfully, but these errors were encountered: