Skip to content

Instantly share code, notes, and snippets.

@adam-singer
Created March 16, 2012 05:32
Show Gist options
  • Save adam-singer/2048680 to your computer and use it in GitHub Desktop.
Save adam-singer/2048680 to your computer and use it in GitHub Desktop.
Isolate Hangs
#import("dart:isolate");
iso() {
port.receive((msg, reply) {
port.close();
});
}
void main() {
SendPort sp = spawnFunction(iso);
sp.call("");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment