background_task_optimizer
A Flutter package to optimize background task management using isolates and concurrency.
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Too new to tell
only 2 release windows
Most releases are documented
notes for 3 of 4 stable releases
Nothing withdrawn
no release was ever pulled
2 years old
5 releases · first in 2024
0 releases in the last 12 months
see the full history below
Release timeline
5 releases · Nov 2024 to Feb 2025Releases
latest 5-
1.1.303 Feb 2025 -
1.1.203 Feb 2025Release notes
Open source →Added
- Introduced
runExpensiveOperationWith<T>method with an optionaltimeoutparameter:- Allows running a heavy operation in an isolate with optional timeout handling.
- Throws a
TimeoutExceptionif the operation exceeds the specified duration. - Automatically kills the isolate upon completion or in case of an error.
- Added detailed in-line documentation to
BackgroundTaskclass:- Each method now includes comments explaining parameters, behavior, and error handling.
- Class-level and in-line comments provide further guidance on isolate management and operation execution.
- Introduced
TaskExecutionException:- Custom exception for task execution failures, providing detailed error information.
- Includes a message, an optional cause, and an optional stack trace.
Improved
- Updated error handling in
_executeOperationto log any exceptions that occur within the isolate. - Enhanced error propagation to ensure all errors encountered in the background isolate are rethrown to the caller.
- Improved documentation:
- Added missing documentation comments for
TaskExecutionExceptionand its fields (message,cause,stackTrace). - Ensured consistent formatting and completeness in API documentation.
- Added missing documentation comments for
- Introduced
-
1.1.128 Jan 2025Nothing published for this version
-
1.1.028 Jan 2025Release notes
Open source →Release v1.1.0
This is the first stable version of the
background_task_optimizerpackage. It allows you to efficiently run resource-intensive tasks using isolates and provides support for:- Running operations in the background isolates to avoid blocking the main thread.
- Support for operations with timeouts and retries.
- Optional performance profiling for task execution.
Features:
- Execute expensive operations in isolates to keep the main thread responsive.
- Configurable timeout support for operations.
- Retry logic with exponential backoff in case of failures.
Requirements:
- Flutter 1.17.0 or higher.
- Dart 3.7.0 or higher.
Thanks for using
background_task_optimizer! 😊 ︻デ═一Full Changelog: https://github.com/RuLevyDev/background_task_optimizer/commits/v1.1.0
-
1.1.0-dev08 Nov 2024 pre-releaseNothing published for this version