Repository navigation
v1.1.4
-
lib/src/async_task_isolate.dart:_Isolate: an error while resolving a task'sSharedDatain theIsolate
(loadSharedDatathrowing or returningnull, or a task type not registered)
now completes the task with anAsyncExecutorError.
Previously the error was unhandled in theIsolateport handler, killing theIsolate:
the task never completed andAsyncExecutor.closenever returned._Isolate: a failed request of a missingSharedData(to the main side) no longer
leaves a stale pending request: the next task requests it again._Isolate: the task channel port is sent to the main side only after the task channel is initialized.
When the task execution was delayed by aSharedDatarequest to the main side,
channel messages sent by the main side in the meantime were lost (the task waited forever)._Isolate: releases the task channel port of a task that failed resolving itsSharedData.
-
Tests:
- New
async_task_stress_test.dart(VM and Web): hundreds of tasks withparallelism0/1/4,
sequential and not, mixed sync/async/throwing tasks, results order and identity,
closewhile tasks are queued or running,executewhile closing,
SharedDatareuse and dispose across many tasks and bidirectional channel messages under load. - New
async_task_isolate_integration_test.dart(VM):SharedDataload failures and
the request of a missingSharedDatafrom the main side, dispose between queued tasks,
concurrent tasks with newSharedDataandIsolatetermination on close (viavm_service). async_task_counter_test.dart: replaced the wall-clock assertions (execution and total time thresholds)
with assertions on the ordering of the execution intervals (concurrent vs. sequential execution).
- New