PackageTrack
Sign in Get early access

async_phase

A sealed class and its subclasses representing phases of an asynchronous operation.

0.6.2 kaboc/async-phase

What this package is like to depend on

Last release 8 months ago

20 Dec 2025

Ships fairly regularly

a new release about every 3 months

Nearly every release is documented

notes for 14 of 14 stable releases

Nothing withdrawn

no release was ever pulled

4 years old

14 releases · first in 2022

3 releases in the last 12 months

see the full history below

Release timeline

14 releases · Dec 2022 to Dec 2025
2023 2024 2025 2026
Release Pre-release

Releases

latest 14
  1. 0.6.2 20 Dec 2025
    Release notes
    • Update the minimum Dart SDK version to 3.6.2.
    Open source →
  2. 0.6.1 18 Dec 2025
    Release notes
    • Improve method signatures for better auto-completion of callback parameters.
    • Improve documentation.
    Open source →
  3. 0.6.0 06 Oct 2025
    Release notes
    • Add rethrowIfError() to AsyncPhase.
    • Add note about errors occurring in onComplete and onError callbacks.
    Open source →
  4. 0.5.2 02 Mar 2025
    Release notes
    • Improve when() and whenOrNull() so that the data parameter of each callback (except for the error callback) follows the nullability of the generic type.
    • Minor refactorings.
    Open source →
  5. 0.5.1 02 Mar 2025
    Release notes
    • Add convert().
    Open source →
  6. 0.5.0 30 Nov 2024
    Release notes
    • Breaking:
      • Change return type of callback of AsyncPhase.from() from FutureOr to Future.
        • This is an improvement to prevent misuse that leads to unhandled error.
      • Make error of AsyncError required.
      • Change error and stackTrace of AsyncError to be non-nullable.
    • Fix AsyncComplete having data redundantly in both this._data and super.data.
    • Fix AsyncPhase.from() so that resulting phase is not affected by error thrown in onComplete or onError callback.
    • Add rethrowError() to AsyncError.
    Open source →
  7. 0.4.0 30 Apr 2024
    Release notes
    • Breaking:
      • Change onError function of AsyncPhase.from() to receive data.
    • Improve AsyncPhase.from().
      • Change fallbackData to optional.
      • Add onComplete.
      • Refactor when() to use destructured fields.
    Open source →
  8. 0.3.2 17 Sep 2023
    Release notes
    • Add copyWith().
    • Minor refactorings.
    Open source →
  9. 0.3.1 18 Aug 2023
    Release notes
    • Update dependencies.
    Open source →
  10. 0.3.0 31 May 2023
    Release notes
    • Raise minimum Dart SDK version to 3.0.0.
    • Change AsyncPhase class to sealed.
    • Change subclasses of AsyncPhase to final.
    • Related refactorings.
    Open source →
  11. 0.2.0 25 Jan 2023
    Release notes
    • Raise minimum Dart SDK version to 2.19.0.
    Open source →
  12. 0.1.0 10 Dec 2022
    Release notes
    • Breaking:
      • Improve data of AsyncComplete<T> to be non-null if T is not nullable.
      • Hide error and stackTrace in AsyncPhase and make them only available in AsyncError.
    • Make sure data is of type Object? instead of dynamic when the type is unknown.
    • Add tests.
    • Improve documentation.
    Open source →
  13. 0.0.1 05 Dec 2022
    Release notes
    • Initial version.
    Open source →
  14. 0.0.1+1 05 Dec 2022
    Release notes
    • Update README.
    Open source →

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