commit | 295ee241f7f2b41bf8b469af25540de59bc53613 | [log] [tgz] |
---|---|---|
author | Lasse R.H. Nielsen <lrn@google.com> | Tue Jun 04 13:55:59 2019 +0200 |
committer | GitHub <noreply@github.com> | Tue Jun 04 13:55:59 2019 +0200 |
tree | f1af712ba91cfcdf1043911ea536a0a7abb3ffbb | |
parent | 5b5d218cc8b38793c5f425ac2ce20babcabd3f99 [diff] |
Fix bug in `IsolateRunner.kill`. (#33) Fix bug in `IsolateRunner.kill`. Update `LoadBalancer.runMultiple` to be properly generic. Cleanups and tweaks. Add example for registry.
Helps with isolates and isolate communication in Dart. Requires the dart:isolate
library being available. Isolates are not available for Dart on the web.
The package contains individual libraries with different purposes.
The “ports.dart” sub-library contains functionality for creating SendPort
s and reacting to values sent to those ports.
The “isolate_runner.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 across different isolates.
The “load_balancer.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.