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
Future called from isolate fails. #14906
Comments
Added Area-Library, Library-Isolate, Triaged labels. |
I cannot reproduce this problem with the current dart VM on the command line. How, exactly, are you running the program? Added NeedsInfo label. |
This comment was originally written by increo...@gmail.com It is web application, Dartium loads HTML page and runs Dart script. |
This is probably because the dartium isolates don't support Timer (which is currently used by scheduleMicrotask). Added Accepted label. |
This comment was originally written by increos...@gmail.com This problem was already been solved in spring 2013 (in old Isolate library) - see Issue #9135. |
We recently had a regression where isolates in Dartium cannot use microtasks (which are usually used to complete Futures) and Timers. |
This comment was originally written by brendand...@google.com +1 for Timer support for background isolates |
This comment was originally written by pablomartinez.angeros...@gmail.com I have the same problem too! I need get the Future Chrome History in an Isolated process... and is no possible. |
I think the fix has landed, the example works now. Added AssumedStale label. |
This issue was originally filed by incre...@gmail.com
main.dart - Launches isolate and prints received messages.
=========
import 'dart:isolate';
main() {
ReceivePort port = new ReceivePort()
..listen((msg) => print('msg: $msg'));
Isolate.spawnUri(Uri.parse("isolate.dart"), [], port.sendPort);
}
isolate.dart - Isolate file.
============
import 'dart:async';
import 'dart:isolate';
void main(List<String> args, SendPort replyTo) {
// This is OK.
replyTo.send('Direct message');
// This FAILS.
new Future.value('Future message').then(replyTo.send);
}
Dart SDK version 0.8.10.8_r30039
Chromium 31.0.1650.39 (1587)
Windows 7 64
The text was updated successfully, but these errors were encountered: