I'm looking through the documentation for Isolates and noticed that you can use the static method spawnUri
to create an isolate from a file.
As seen here: http://api.dartlang.org/docs/releases/latest/dart_isolate/Isolate.html#spawnUri
On that document it states that it returns a future of which returns a Isolate instance however there is no other methods.
Does anyone know how exactly you go about using this instance to send messages back and forth between the isolates?
Current Code:
Isolate.spawnUri(Uri.parse(myLibraryFileName),[],"").then((Isolate iso) {
// Is there a way of getting the SendPort of the isolate?
//Or is there other ways of calling different functions in
//code (and being able to send messages back to the main isolate)
});
Thank you.