better_future 2.0.0
better_future: ^2.0.0 copied to clipboard
Advanced asynchronous orchestration with named results, and automatic dependency management and cleanup.
2.0.0 #
- Implemented
BetterFuture.settle: similar toBetterFuture.wait, but returns a map ofBetterOutcome<T>instead ofT. Each outcome contains either a computation result or an error. As a result,BetterFuture.settlenever fails (though it may never complete).
1.0.1 #
- Changed
BetterResultsto anabstract interface classfor better encapsulation and testing support. - Improved API documentation for
BetterFuture.waitwith detailed usage examples; also clarified return map behavior and dependency management.
1.0.0 #
- Initial release.
- Features:
- Parallel execution of asynchronous tasks with
FutureOrsupport. - Automatic dependency management via the
$(BetterResults) object. - Elegant dynamic syntax for result access (
$.keyand$.key<T>()). - Robust built-in type casting for primitives, collections, and common core types.
- Custom type registration for cross-platform type-safe dynamic access.
- Automatic resource cleanup on orchestration failure via
cleanUpcallback. - Full compatibility with VM, Web (JavaScript), and WASM.
- Optimized for Dart 3 Map destructuring patterns.
- Parallel execution of asynchronous tasks with