OLD | NEW |
(Empty) | |
| 1 # isolate |
| 2 |
| 3 The `isolate` package helps with isolates and isolate communication. |
| 4 |
| 5 The package contains individual libraries with different purposes. |
| 6 |
| 7 ### Creating send ports and responding to messages. |
| 8 |
| 9 The "ports.dart" sub-library contains functionality |
| 10 for creating `SendPort`s and reacting to values sent to those ports. |
| 11 |
| 12 ### Working with isolates and running functions in other isolates. |
| 13 |
| 14 The "isolaterunner.dart" sub-library introduces an `IsolateRunner` class |
| 15 that gives easy access to the `Isolate` functionality, and also |
| 16 gives a way to run new functions in the isolate repeatedly, instead of |
| 17 just on the initial `spawn` call. |
| 18 |
| 19 ### A central registry for values that can be used accross isolates. |
| 20 |
| 21 The "registry.dart" sub-library provides a way to create an |
| 22 object registry, and give access to it accross different isolates. |
| 23 |
| 24 ### Balancing load accross several isolates. |
| 25 |
| 26 The "loadbalancer.dart" sub-library can manage multiple `Runner` objects, |
| 27 including `IsolateRunner`, and run functions on the currently least loaded |
| 28 runner. |
| 29 |
| 30 ## Features and bugs |
| 31 |
| 32 Please file feature requests and bugs at the [issue tracker][tracker]. |
| 33 |
| 34 [tracker]: https://github.com/dart-lang/isolate/issues |
OLD | NEW |