async_extension 1.2.12 async_extension: ^1.2.12 copied to clipboard
Dart async extensions, to help usage of Future, FutureOr and async methods. Also allows performance improvements when using sync and async code.
1.2.12 #
-
New
IterableMapEntryFutureValueExtension
:- Added
resolveAllValues
.
- Added
-
New
IterableMapEntryFutureKeyExtension
:- Added
resolveAllKeys
.
- Added
-
New
IterableMapEntryFutureExtension
:- Added
resolveAllEntries
.
- Added
1.2.11 #
- New
IterableAsyncExtension
:- Added
forEachAsync
.
- Added
1.2.10 #
- New
CompleterExtension
:- Added
completeSafe
,completeErrorSafe
.
- Added
1.2.9 #
onErrorReturn
: added optional parameteronError
.nullOnError
: added optional parametersonError
andonErrorOrNull
.
1.2.8 #
-
New
AsyncExtensionErrorLogger
anddefaultAsyncExtensionErrorLogger
: -
New
FutureOnErrorExtension
:logError
onErrorReturn
nullOnError
-
FutureNonNullOnErrorExtension
:onComplete
-
FutureNullableOnErrorExtension
:onComplete
onCompleteNotNull
-
lints: ^3.0.0
1.2.7 #
IterableFutureOrNullableExtension
:whereFutureNullable
,selectFuturesNullable
: returnFuture<T?>
for consistency with "Nullable" suffix.waitFuturesNullable
: returnFutureOr<List<T?>>
for consistency with "Nullable" suffix.
1.2.6 #
-
New
extension IterableFutureOrNullableExtension<T> on Iterable<FutureOr<T>?>
:whereFutureNullable
,selectFuturesNullable
,asFuturesNullable
andwaitFuturesNullable
.
-
test: ^1.25.2
-
dependency_validator: ^3.2.3
-
coverage: ^1.7.2
1.2.5 #
- New
ExpandoFutureExtension
andExpandoFutureOrExtension
:putIfAbsentAsync
1.2.4 #
- New
FutureOrIterableNullableExtension
andFutureIterableNullableExtension
.
1.2.3 #
- New
FutureNullableExtension
andFutureOrNullableExtension
:orElseAsync
andorElseGeAsync
.
1.2.2 #
FutureOrIterableExtension
andFutureIterableExtension
.- Use suffix
Async
to avoid extension overwrite issues.
- Use suffix
1.2.1 #
- New
FutureOrIterableExtension
andFutureIterableExtension
. - test: ^1.24.6
1.2.0 #
- sdk: '>=3.0.0 <4.0.0'
- lints: ^2.1.1
- test: ^1.24.4
1.1.1 #
-
Optimize:
resolveMapped
,resolveAllValuesNullable
.resolveAllValues
,resolveAllValuesNullable
,resolveAllKeys
,resolveAllEntries
.
-
sdk: '>=2.18.0 <4.0.0'
-
test: ^1.24.3
1.1.0 #
- Fix GitHub CI badge.
- sdk: '>=2.18.0 <3.0.0'
- lints: ^2.0.1
- test: ^1.23.0
- coverage: ^1.6.3
1.0.12 #
asyncTry
:- Fix issue when
onError
returns aFuture
with a type different from the main function.
- Fix issue when
1.0.11 #
AsyncLoop
:- Added
AsyncLoop.forEach
. - Optimize
_runBody
to avoid recursion.
- Added
asyncTry
:- Fix behavior when an error is rethrown inside an
onError
block. - Fix behavior when an error is thrown inside an
onFinally
block. - Ensures the same behavior of standard Dart
try/catch
blocks.
- Fix behavior when an error is rethrown inside an
1.0.10 #
FutureExtension
andFutureOrExtension
:- Renamed
type
getter togenericType
to avoid issues with nullable variables.
- Renamed
- Update GitHub CI.
- lints: ^2.0.0
- test: ^1.17.12
- dependency_validator: ^3.2.2
- coverage: ^1.0.4
1.0.9 #
whereNotNull
renamed towhereNotNullSync
to avoid conflict with packagecollection
.
1.0.8 #
- Added
asyncTry
:- Executes a
block
in atry
,then
,catch
andfinally
execution chain.
- Executes a
- Using standard Dart coverage.
- coverage: ^1.0.3
1.0.7 #
- New extension methods:
resolveOther
resolveAllNullable
- New
Map
extension methods:resolveAllKeys
resolveAllEntries
resolveAllValues
resolveAllValuesNullable
1.0.6 #
- New extension methods for nullable types:
whereNotNull
whereNotNullResolved
resolveAllNotNull
- Fixed
isResolved
detection for whenT
isObject
ordynamic
.
1.0.5 #
- The package now exports
dart:async
. - New extensions:
- resolveWithValue
- resolveAllWithValue
- resolveAllThen
- allAsList
- Optimized some resolutions
- Now ensures that iterables won't be iterated more than once.
- Ensures that
List
andSet
won't be converted toList
when not needed.
1.0.4 #
- Added
AsyncLoop
andAsyncSequenceLoop
.
1.0.3 #
- Added
FutureOr.then
.
1.0.2 #
- Added
resolveBoth
forFutureOr
andFuture
. - Add
Future
andFutureOr
arithmetic operators. - Added Benchmarks:
async_extension_benchmark.dart
async_extension_benchmark2.dart
1.0.1 #
- Adjusted
pubspec.yaml
description. - Added
FOSSA
scan and badges.
1.0.0 #
- Initial version.