-
-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Trio out-of-the-box, take 2 (#463)
* Support Trio out-of-the-box This PR makes `@retry` just work when running under Trio. * Add a no-trio test environment * Switch to only testing trio in one environment * bump releasenote so it is later in history->reno puts it in the correct place in the changelog * fix mypy & pep8 checks * Update doc/source/index.rst fix example Co-authored-by: Julien Danjou <[email protected]> * Update tests/test_tornado.py * Update tests/test_tornado.py * make _portably_async_sleep a sync function that returns an async function --------- Co-authored-by: Nathaniel J. Smith <[email protected]> Co-authored-by: Julien Danjou <[email protected]>
- Loading branch information
1 parent
952189b
commit ade0567
Showing
6 changed files
with
60 additions
and
13 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
features: | ||
- | | ||
If you're using `Trio <https://trio.readthedocs.io>`__, then | ||
``@retry`` now works automatically. It's no longer necessary to | ||
pass ``sleep=trio.sleep``. |
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
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