Clone this repo:
  1. 73bf6fb Updated version number and SDK version. by Lasse R.H. Nielsen · 6 weeks ago master 2.0.0
  2. eba5eb6 Make the isolate package Dart 2 type-safe. (#21) by Lasse R.H. Nielsen · 6 weeks ago
  3. fa28c49 Fix oops with 1.1.0 release – only support SDKs w/ generic functions (#17) by Kevin Moore · 5 months ago
  4. 9051ad9 Fix type on _create to match use at call site (#20) by Leaf Petersen · 6 months ago
  5. 6d3656f Add generic arguments to `singleCallbackPort` and `singleCompletePort` (#16) by Kevin Moore · 7 months ago 1.1.0

Build Status

Helps with isolates and isolate communication in Dart.

The package contains individual libraries with different purposes.

Creating send ports and responding to messages.

The “ports.dart” sub-library contains functionality for creating SendPorts and reacting to values sent to those ports.

Working with isolates and running functions in other isolates.

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.

A central registry for values that can be used across isolates.

The “registry.dart” sub-library provides a way to create an object registry, and give access to it across different isolates.

Balancing load across several isolates.

The “load_balancer.dart” sub-library can manage multiple Runner objects, including IsolateRunner, and run functions on the currently least loaded runner.

Features and bugs

Please file feature requests and bugs at the issue tracker.