Skip to content
This repository was archived by the owner on Sep 27, 2021. It is now read-only.

Clarify that this package doesn't work on the web in README #10

Closed
filiph opened this issue Jan 17, 2017 · 2 comments
Closed

Clarify that this package doesn't work on the web in README #10

filiph opened this issue Jan 17, 2017 · 2 comments

Comments

@filiph
Copy link

filiph commented Jan 17, 2017

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.

@filiph
Copy link
Author

filiph commented Jan 17, 2017

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()).

@lrhn
Copy link
Contributor

lrhn commented Jun 3, 2019

Adding this to the readme.

@lrhn lrhn closed this as completed Jun 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants