Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore the API for async_creation_runner in all cases
Fixed regression in 0.7.0 caused by 🎫`136` where the assumed arguments for the :paramref:`.CacheRegion.async_creation_runner` expanded to include the new :paramref:`.CacheRegion.get_or_create.creator_args` parameter, as it was not tested that the async runner would be implicitly called with these arguments when the :meth:`.CacheRegion.cache_on_arguments` decorator was used. The exact signature of ``async_creation_runner`` is now restored to have the same arguments in all cases. Fixes: #139 Change-Id: I91c95b183e01d1bbe1c42b3375fcfa65866cc97d
- Loading branch information
Showing
3 changed files
with
91 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.. change:: | ||
:tags: bug, region | ||
:tickets: 139 | ||
|
||
Fixed regression in 0.7.0 caused by :ticket:`136` where the assumed | ||
arguments for the :paramref:`.CacheRegion.async_creation_runner` expanded to | ||
include the new :paramref:`.CacheRegion.get_or_create.creator_args` | ||
parameter, as it was not tested that the async runner would be implicitly | ||
called with these arguments when the :meth:`.CacheRegion.cache_on_arguments` | ||
decorator was used. The exact signature of ``async_creation_runner`` is | ||
now restored to have the same arguments in all cases. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters