async_event_loader library
A Dart package for managing and processing asynchronous events sequentially.
This package provides a controller that processes a list of async events in order, with support for retry logic, error handling, timeout management, and real-time status tracking.
Features
- Sequential async event processing
- Configurable retry logic
- Error handling with skip-on-error option
- Controller-level and event-level timeouts
- Real-time status updates via streams
- Pause/resume functionality
Getting Started
import 'package:async_event_loader/async_event_loader.dart';
final controller = AsyncEventLoaderController(
events: [
AsyncEvent(
action: () async => await doSomething(),
onSuccess: () => print('Success!'),
),
],
);
controller.run();
Classes
- AsyncEvent
- Represents an asynchronous event that can be processed by AsyncEventLoaderController.
- AsyncEventLoader
- A Very Good Project created by Very Good CLI.
- AsyncEventLoaderController
- Controller for managing and processing asynchronous events sequentially.
- EventStatus
- Represents the current status of event processing.
Enums
- AsyncStatus
- Represents the various states of async event processing.
Extensions
- AsyncStatusX on AsyncStatus
- Extension providing convenient boolean checks for AsyncStatus.