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
Releases
latest 14-
0.6.220 Dec 2025 -
0.6.118 Dec 2025Release notes
Open source →- Improve method signatures for better auto-completion of callback parameters.
- Improve documentation.
-
0.6.006 Oct 2025Release notes
Open source →- Add
rethrowIfError()toAsyncPhase. - Add note about errors occurring in
onCompleteandonErrorcallbacks.
- Add
-
0.5.202 Mar 2025Release notes
Open source →- Improve
when()andwhenOrNull()so that thedataparameter of each callback (except for theerrorcallback) follows the nullability of the generic type. - Minor refactorings.
- Improve
-
0.5.102 Mar 2025 -
0.5.030 Nov 2024Release notes
Open source →- Breaking:
- Change return type of callback of
AsyncPhase.from()fromFutureOrtoFuture.- This is an improvement to prevent misuse that leads to unhandled error.
- Make
errorofAsyncErrorrequired. - Change
errorandstackTraceofAsyncErrorto be non-nullable.
- Change return type of callback of
- Fix
AsyncCompletehaving data redundantly in boththis._dataandsuper.data. - Fix
AsyncPhase.from()so that resulting phase is not affected by error thrown inonCompleteoronErrorcallback. - Add
rethrowError()toAsyncError.
- Breaking:
-
0.4.030 Apr 2024Release notes
Open source →- Breaking:
- Change
onErrorfunction ofAsyncPhase.from()to receive data.
- Change
- Improve
AsyncPhase.from().- Change
fallbackDatato optional. - Add
onComplete. - Refactor
when()to use destructured fields.
- Change
- Breaking:
-
0.3.217 Sep 2023 -
0.3.118 Aug 2023 -
0.3.031 May 2023Release notes
Open source →- Raise minimum Dart SDK version to 3.0.0.
- Change AsyncPhase class to
sealed. - Change subclasses of AsyncPhase to
final. - Related refactorings.
-
0.2.025 Jan 2023 -
0.1.010 Dec 2022Release notes
Open source →- Breaking:
- Improve
dataofAsyncComplete<T>to be non-null ifTis not nullable. - Hide
errorandstackTracein AsyncPhase and make them only available in AsyncError.
- Improve
- Make sure
datais of typeObject?instead ofdynamicwhen the type is unknown. - Add tests.
- Improve documentation.
- Breaking:
-
0.0.105 Dec 2022 -
0.0.1+105 Dec 2022