isolated_stream 2.0.0-dev.1 copy "isolated_stream: ^2.0.0-dev.1" to clipboard
isolated_stream: ^2.0.0-dev.1 copied to clipboard

A Dart package for running CPU-intensive stream transformations in separate isolates to prevent blocking the main thread.

2.0.0-dev.1 #

  • BREAKING CHANGE: Replaced concurrency, and isolates parameters with strategy-based API
  • Added IsolatedProcessingStrategy pattern for better type safety and extensibility
  • Added IsolatedProcessingStrategy.concurrent(), .droppable(), .restartable(), .sequential() factories
  • Improved broadcast stream handling with shared isolates across listeners
  • Fixed concurrency tracking issues in isolate boundaries
  • Enhanced lazy initialization for better resource management

Migration example:

// Before (v1.x)
stream.isolatedMap(handler, concurrency: 3, isolates: 2)
// After (v2.x)
stream.isolatedMap(
  handler,
  strategy: IsolatedProcessingStrategy.concurrent(
    concurrency: 3,
    isolates: 2,
  ),
);

1.0.0 #

  • Initial release
  • Added isolatedMap() extension for streams
  • Added IsolatedHandler abstract class
  • Support for sync and async transformations
  • Configurable concurrency with order preservation
  • Isolate pooling for high-throughput scenarios
1
likes
160
points
0
downloads

Publisher

verified publisherklyta.it

Weekly Downloads

A Dart package for running CPU-intensive stream transformations in separate isolates to prevent blocking the main thread.

Repository (GitHub)
View/report issues

Topics

#isolate #stream #concurrency #performance #async

Documentation

API reference

Funding

Consider supporting this project:

www.paypal.com
www.buymeacoffee.com

License

MIT (license)

Dependencies

meta

More

Packages that depend on isolated_stream