async_task library Null safety

Asynchronous tasks and parallel executors.

Classes

AsyncExecutor
Asynchronous Executor of AsyncTask.
AsyncExecutorClosedError
AsyncExecutorError
Error for AsyncTask execution.
AsyncExecutorSharedDataInfo
Collects SharedData execution information.
AsyncExecutorThread
Base class for executor thread implementation.
AsyncExecutorThreadInfo
An AsyncExecutorThread info.
AsyncTask<P, R>
Base class for tasks implementation.
AsyncTaskChannel
A message channel for a running AsyncTask
AsyncTaskChannelPort
Base class for channels ports.
AsyncTaskLoggerCaller
AsyncTaskPlatform
AsyncTask Platform information.
AsyncThreadInfo
A thread info.
SerializableData<D, S>
Interface for serializable data classes:
SharedData<D, S>
Class for shared data between AsyncTask instances.

Functions

createAsyncExecutorThread(String executorName, AsyncTaskLoggerCaller logger, bool sequential, int parallelism, [AsyncTaskRegister? taskRegister]) AsyncExecutorThread
defaultAsyncTaskLogger(String type, dynamic message, [dynamic error, dynamic stackTrace]) → void

Enums

AsyncExecutorStatus
AsyncTaskPlatformType
AsyncTask Platform type.
AsyncTaskStatus
Status of an AsyncTask.

Typedefs

AsyncTaskChannelMessageHandler = void Function(dynamic message, bool fromExecutingContext)
An AsyncTaskChannel message handler.
AsyncTaskLogger = void Function(String type, dynamic message, [dynamic error, dynamic stackTrace])
AsyncTaskRegister = FutureOr<List<AsyncTask>> Function()
OnFinishAsyncTask = void Function(AsyncTask asyncTask, Object? result, Object? error, StackTrace? stackTrace)