async/cancel_previous_exception library
Functions
-
cancelPrevious<
T> (Future< T> fn()) → Future<T> Function() - Returns a wrapper that cancels previous in-flight calls when invoked again; the superseded future throws CancelPreviousException. Roadmap #183.
Exceptions / Errors
- CancelPreviousException
- Thrown when a call was superseded by a newer cancelPrevious invocation.