async_phase 0.6.0  async_phase: ^0.6.0 copied to clipboard
async_phase: ^0.6.0 copied to clipboard
A sealed class and its subclasses representing phases of an asynchronous operation.
0.6.0 #
- Add rethrowIfError()toAsyncPhase.
- Add note about errors occurring in onCompleteandonErrorcallbacks.
0.5.2 #
- Improve when()andwhenOrNull()so that thedataparameter of each callback (except for theerrorcallback) follows the nullability of the generic type.
- Minor refactorings.
0.5.1 #
- Add convert().
0.5.0 #
- 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.
0.4.0 #
- Breaking:
- Change onErrorfunction ofAsyncPhase.from()to receive data.
 
- Change 
- Improve AsyncPhase.from().- Change fallbackDatato optional.
- Add onComplete.
- Refactor when()to use destructured fields.
 
- Change 
0.3.2 #
- Add copyWith().
- Minor refactorings.
0.3.1 #
- Update dependencies.
0.3.0 #
- Raise minimum Dart SDK version to 3.0.0.
- Change AsyncPhase class to sealed.
- Change subclasses of AsyncPhase to final.
- Related refactorings.
0.2.0 #
- Raise minimum Dart SDK version to 2.19.0.
0.1.0 #
- 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.
0.0.1+1 #
- Update README.
0.0.1 #
- Initial version.