| commit | 2df37dab32a8fb702f094127f053268681d097d1 | [log] [tgz] |
|---|---|---|
| author | Lasse R.H. Nielsen <lrn@google.com> | Wed Feb 25 13:00:48 2015 +0100 |
| committer | Lasse R.H. Nielsen <lrn@google.com> | Wed Feb 25 13:00:48 2015 +0100 |
| tree | fc1f12d64e9fb036c4598d8670f2371b5835ffc4 | |
| parent | cec18e9d8f1b0a8726e869d5d365ff880739e03c [diff] |
Add IsolateRunner as a helper around Isolate. Add single-message port helpers and a load balancer. R=sethladd@google.com Review URL: https://codereview.chromium.org//928663003
The isolate package helps with isolates and isolate communication.
The package contains individual libraries with different purposes.
The “ports.dart” sub-library contains functionality for creating SendPorts and reacting to values sent to those ports.
The “isolaterunner.dart” sub-library introduces an IsolateRunner class that gives easy access to the Isolate functionality, and also gives a way to run new functions in the isolate repeatedly, instead of just on the initial spawn call.
The “registry.dart” sub-library provides a way to create an object registry, and give access to it accross different isolates.
The “loadbalancer.dart” sub-library can manage multiple Runner objects, including IsolateRunner, and run functions on the currently least loaded runner.
Please file feature requests and bugs at the issue tracker.