Skip to content

dart:isolate

Concurrent programming using isolates: independent workers that are similar to threads but don't share memory, communicating only via messages.

NOTE: The dart:isolate library is currently only supported by the Dart Native platform.

To use this library in your code:

dart
import 'dart:isolate';

Classes

ClassDescription
CapabilityAn unforgeable object that comes back as equal when passed through other isolates.
IsolateAn isolated Dart execution context.
RawReceivePortA low-level asynchronous message receiver.
ReceivePortTogether with SendPort, the only means of communication between isolates.
SendPortSends messages to its ReceivePorts.
TransferableTypedDataAn efficiently transferable sequence of byte values.

Exceptions

ExceptionDescription
IsolateSpawnExceptionThrown when an isolate cannot be created.
RemoteErrorDescription of an error from another isolate.