Release history
aioresult 1.2 (2025-02-28)
Add
py.typedmarker so that type checkers know that type annotations should be used for type checking.
aioresult 1.1 (2025-02-26)
Add type hints (to the maximum extent reasonably possible), courtesy of TeamSpen210.
Lazily construct the internal
Event, so thatResultCaptureobjects can be constructed before the event loop runs (e.g., at global module scope).Add nice string representation.
aioresult 1.0 (2024-02-08)
Breaking API change:
ResultCapture.routineandResultCapture.argsare now properties rather than methods (since all they do is directly return an underlying attribute).Breaking API change: Remove
StartableResultCaptureclass; replace with two new elements of functionality:Add
**kwargstoResultCapture.run(), passed through to the underlying async routine. This allows it to be used directly withtrio.Nursery.start()andanyio.abc.TaskGroup.start().Add
ResultCapture.capture_start_and_done_results(), which allows capturing both the start result and the overall task result as separateResultCaptureobjects.
Add some utility functions for waiting for a result:
wait_any(),wait_all()andresults_to_channel().Allow exceptions to be optionally suppressed from propagating out of
ResultCapture(but only those of typeException, not those directly derived fromBaseException).Reorganise docs slightly (the tutorial for the main
ResultCapturefunctionality is separated from the reference documentation, and theFuturedocumentation is moved to its own separate page, and there is an extra page for the new wait functions).
aioresult 0.9 (2023-01-02)
Initial release, with main class
ResultCapture, derived classStartableResultCapture, along withFuture, and their base classResultBase.