async_task 1.0.8 async_task: ^1.0.8 copied to clipboard
Asynchronous tasks and parallel executors (similar to thread pools) for all Dart platforms (transparently), without having to deal with `Isolate` complexity.
1.0.8 #
- Fix isolate message of a task without
SharedData
. - Improved tests scenarios.
1.0.7 #
- Small fix in README.
- Small fix in example.
1.0.6 #
- Added
AsyncTaskChannel
for messages communication with tasks during execution. - Added
AsyncExecutorStatus
. AsyncExecutor
: optimize to avoid creating of futures while executing/processing a task.- Improved README.
1.0.5 #
- Added
AsyncTaskPlatform
andAsyncTaskPlatformType
. AsyncTask
:- Optimize
taskType
- Optimize
execute
to use lessasync
operations.
- Optimize
- Added
AsyncExecutorSharedDataInfo
to reportSharedData
information. AsyncExecutor
:- New constructor parameter
parallelismPercentage
. - Optimize
execute
,executeAll
andexecuteAllAndWaitResults
to dispatch less asyn operations. - Added
disposeSharedData
anddisposeSharedDataInfo
.
- New constructor parameter
- Extensions:
- Added
IterableFutureOrExtension
andIterableFutureExtension
.
- Added
_AsyncExecutorMultiThread
:- Optimized to use less
async
operations. - Using
_RawReceivePortPool
to optimize ports. - Optimized to pre send
SharedData
.
- Optimized to use less
- Added
_RawReceivePortPool
: pool of reusable_ReceivePort
. - Added
_ReceivePort
: an optimizedRawReceivePort
.
1.0.4 #
AsyncTask
:- Allow multiple
SharedData
: Optional methodsharedData
now returns aMap<String,SharedData>
.
- Allow multiple
1.0.3 #
AsyncExecutor
:- Fix
close
operation while tasks are being executed.
- Fix
1.0.2 #
- Added
SharedData
, to optimize data sharing between tasks and threads/isolates. AsyncExecutor
: addedclose
to stop and finalize an executor.- Added collections extensions:
ListExtension
,MapExtension
,SetExtension
,IterableExtension
.
1.0.1 #
- Fix
pubspec.yaml
description length. - Improve
README.md
description.
1.0.0 #
- Implemented
AsyncTask
withstatus
,result
andexecutionTime
. AsyncExecutor
with implementations based ondart:isolate
anddart:async
.- Initial version.