awesome_task_manager library
The Awesome Task Manager is a powerful and flexible library for managing concurrent tasks in Flutter applications. It helps prevent race conditions, optimize resource usage, and provides fine-grained control over task execution.
Classes
- AwesomeTaskManager
- The main entry point and abstract interface for the Awesome Task Manager library.
-
AwesomeTaskObserver<
T> - A Flutter widget that rebuilds automatically whenever a task emits a new TaskStatus.
-
CancelableTaskStatus<
T> -
Default implementation of TaskStatus that forwards property access
directly to the underlying
TaskStateinstance. - CancelPreviousTaskManager
- LogListener
- Defines a listener interface for receiving log event notifications.
- RejectedAfterThresholdManager
- SequentialQueueManager
- TaskManager
- Coordinates global task execution state and result resolution across all task managers.
- TaskPoolManager
-
TaskStatus<
T> - Represents the public read-only status of a task execution.
Extensions
- HumanDuration on Duration
- Provides human-readable formatting utilities for Duration values.
Exceptions / Errors
- AwesomeTaskException
- Base interface for all exceptions thrown by the Awesome Task Manager.
- CancellationException
- Thrown when a task is intentionally cancelled before it completes.
- InvalidTasksParameterException
- Thrown when a task receives an invalid or unsupported parameter value.
- MismatchTasksReturnsException
- Thrown when tasks sharing the same taskId attempt to return incompatible types.
- TimeoutException
- Thrown when a task exceeds its allowed execution duration.
- TooManyTasksException
- Thrown when too many tasks are simultaneously running with the same taskId.