02be6ba7e4
* refactor: generic deferred loader helper Splits the DeferredSortKey loader introduced in #5807 into two parts - a generic helper type that implements deferred/background loading of values, and SortKey specific logic for use with it. As this will be more widley used, this implementation features improved behaviour of the deferred loader under concurrent demand requests (multiple calls to get() do not attempt to concurrently resolve the value), as well as complete cancellation safety (cancelling the get() doesn't affect the liveness of the background task). * docs: doc-link & minor comment amendments Fixes naming, adds missing doc-links, and expands some code comments. * test: bound wait times to avoid hangs Adds timeouts to all .await of the code under test, ensuring tests don't hang if something goes wrong. |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml |