better_future 2.0.0 copy "better_future: ^2.0.0" to clipboard
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 to BetterFuture.wait, but returns a map of BetterOutcome<T> instead of T. Each outcome contains either a computation result or an error. As a result, BetterFuture.settle never fails (though it may never complete).

1.0.1 #

  • Changed BetterResults to an abstract interface class for better encapsulation and testing support.
  • Improved API documentation for BetterFuture.wait with detailed usage examples; also clarified return map behavior and dependency management.

1.0.0 #

  • Initial release.
  • Features:
    • Parallel execution of asynchronous tasks with FutureOr support.
    • Automatic dependency management via the $ (BetterResults) object.
    • Elegant dynamic syntax for result access ($.key and $.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 cleanUp callback.
    • Full compatibility with VM, Web (JavaScript), and WASM.
    • Optimized for Dart 3 Map destructuring patterns.
0
likes
160
points
147
downloads

Publisher

verified publisherd-markey.ovh

Weekly Downloads

Advanced asynchronous orchestration with named results, and automatic dependency management and cleanup.

Repository (GitHub)
View/report issues

Documentation

API reference

Funding

Consider supporting this project:

github.com

License

Apache-2.0 (license)

More

Packages that depend on better_future