Releases: gonuit/isolated_stream
Releases · gonuit/isolated_stream
Release list
v2.1.0
- Fixed: an unsendable handler error no longer kills the worker isolate and hangs
compute()— it is delivered as aRemoteErrorfallback. - Fixed: worker isolates are monitored via
onExit/onError— unexpected death fails in-flightcompute()calls with a descriptive error and the pool re-spawns a fresh isolate on the next call. - Fixed: an unsendable input to
compute()no longer leaks the reply port or causes an unhandled async error on a laterdispose().
v2.0.0
- BREAKING CHANGE: Replaced
concurrency, andisolatesparameters with strategy-based API - Added
IsolatedProcessingStrategypattern 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,
),
);