PackageTrack
Sign in Get early access

background_task_optimizer

A Flutter package to optimize background task management using isolates and concurrency.

1.1.3 RuLevyDev/background_task_optimizer

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 2025
2025 2026
Release Pre-release

Releases

latest 5
  1. 1.1.3 03 Feb 2025
    Release notes

    Added

    • Example added
    Open source →
  2. 1.1.2 03 Feb 2025
    Release notes

    Added

    • Introduced runExpensiveOperationWith<T> method with an optional timeout parameter:
      • Allows running a heavy operation in an isolate with optional timeout handling.
      • Throws a TimeoutException if the operation exceeds the specified duration.
      • Automatically kills the isolate upon completion or in case of an error.
    • Added detailed in-line documentation to BackgroundTask class:
      • 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 _executeOperation to 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 TaskExecutionException and its fields (message, cause, stackTrace).
      • Ensured consistent formatting and completeness in API documentation.
    Open source →
  3. 1.1.1 28 Jan 2025

    Nothing published for this version

  4. 1.1.0 28 Jan 2025
    Release notes

    Release v1.1.0

    This is the first stable version of the background_task_optimizer package. 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

    Open source →
  5. 1.1.0-dev 08 Nov 2024 pre-release

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive