async_guard 0.0.1
async_guard: ^0.0.1 copied to clipboard
Prevent duplicate async calls, handle loading & errors in one line. Safe lifecycle, double-tap protection, and clean API for Flutter.
Changelog #
0.0.1 #
- Initial release.
guard()— top-level async wrapper with duplicate prevention, loading state, error handling, and timeout.GuardManager— singleton for tracking running tasks.safeAsync()— lifecycle-safe async execution forStateobjects.SafeAsyncExtensiononState— fluentrunSafe()syntax.GuardedButton— widget with built-in double-tap protection and loading indicator.GuardExtensiononFuture— chain.guard()on any future.