run_off_main 1.1.0
run_off_main: ^1.1.0 copied to clipboard
Execute CPU-bound Dart computations away from the main isolate with DevTools timeline tracing and Web fallbacks.
CHANGELOG #
1.1.0 - 2026-09-15 #
- Added optional
timeoutparameter torunOffMain()andOffMainWorkerExecutor.run(); throwsTimeoutExceptionif the computation does not complete in time. - Added GitHub Actions CI workflow running
dart format,dart analyze, anddart teston push/PR tomain.
1.0.0 - 2026-09-08 #
- Initial release of
run_off_main. - Added
runOffMain<T>()isolate task execution engine. - Added
TimelineTaskDevTools performance tracing. - Added graceful web platform fallback via conditional imports.
- Added
OffMainWorkerExecutorfor configurable dependency injection.