-
-
Notifications
You must be signed in to change notification settings - Fork 1k
anyio integration #1157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
anyio integration #1157
Changes from all commits
Commits
Show all changes
71 commits
Select commit
Hold shift + click to select a range
d06f40c
First whack at anyio integration
uSpike 75310b5
Fix formatting
uSpike a660684
Remove debug messages
uSpike 42b83cb
mypy fixes
uSpike 9870a1f
Update README.md
uSpike 6997eb9
Fix install_requires typo
uSpike e1c2adb
move_on_after blocks if deadline is too small
uSpike de84b4a
Linter fixes
uSpike e91ec33
Improve WSGI structured concurrency
uSpike 7e2cd46
Tests use anyio
uSpike 03e312e
Checkin progress on testclient
uSpike fd4569e
Prep for anyio 3
uSpike d785513
Remove debug backend option
uSpike 58d5331
Use anyio 3.0.0rc1
uSpike 268547d
Remove old style executor from GraphQLApp
uSpike 57b2f79
Fix extra import
uSpike 444a3ac
Don't cancel task scope early
uSpike 4d31a60
Wait for wsgi sender to finish before exiting
uSpike 681c348
Use memory object streams in websocket tests
uSpike 01dd813
Test on asyncio, asyncio+uvloop, and trio
uSpike 9f76d42
Formatting fixes
uSpike 5c8818d
run_until_first_complete doesn't need a return
uSpike f0e4cd8
Fix middleware app call
uSpike 376f9db
Simplify middleware exceptions
uSpike 34da2b4
Use anyio for websocket test
uSpike 31cc220
Set STARLETTE_TESTCLIENT_ASYNC_BACKEND in tests
uSpike 73590aa
Pass async backend to portal
uSpike 4192bf7
Formatting fixes
uSpike 3a4b472
Bump anyio
uSpike cc3be48
Cleanup portals and add TestClient.async_backend
uSpike 9b6e722
Use anyio.run_async_from_thread to send from worker thread
uSpike b8c43cf
Use websocket_connect as context manager
uSpike d51d5ff
Document changes in TestClient
uSpike 82431f4
Formatting fix
uSpike 2504237
Fix websocket raises coverage
uSpike 87c614c
Merge branch 'master' into anyio
uSpike cf915bc
Update to anyio 3.0.0rc3 and replace aiofiles
uSpike 72586ba
Apply suggestions from code review
uSpike 1800f7a
Merge branch 'master' of github.com:encode/starlette into anyio
uSpike 89e2dae
Bump to require anyio 3.0.0 final
uSpike f62a2ec
Remove mention of aiofiles in README.md
uSpike edba5dc
Merge branch 'master' into anyio
uSpike 60d95e1
Merge branch 'master' into anyio
uSpike fc60420
Pin jinja2 to releases before 3 due to DeprecationWarnings
uSpike 27283aa
Add task_group as application attribute
uSpike 3cce6a9
Remove run_until_first_complete
uSpike cbc2e68
Merge branch 'master' of github.com:encode/starlette into anyio
uSpike c4d49a7
Undo jinja pin
uSpike 4dd8c5d
Refactor anyio.sleep into an event
uSpike dde5079
Use one less task in test_websocket_concurrency_pattern
uSpike df53965
Apply review suggestions
uSpike 6e0f05f
Rename argument
uSpike 3a359e3
fix start_task_soon type
graingert 5c77b7d
fix BaseHTTPMiddleware when used without Starlette
graingert 390b7a1
Merge pull request #1 from graingert/anyio
uSpike e420181
Merge branch 'master' of github.com:encode/starlette into anyio
uSpike 6a3f94d
Testclient receive() is a non-trapping function if the response is al…
uSpike 0c225a3
Merge branch 'master' of github.com:encode/starlette into anyio
uSpike 5667a4b
Use variable annotation for async_backend
uSpike 19685db
Update docs regarding dependency on anyio
uSpike 4e43146
Merge changes from master
uSpike a1ceb35
Use CancelScope instead of move_on_after in request.is_disconnected
uSpike 63cfcb9
Cancel task group after returning middleware response
uSpike efbe6a1
Merge branch 'master' of github.com:encode/starlette into anyio
uSpike 6208ca5
Add link to anyio backend options in testclient docs
uSpike 8e6115b
Merge branch 'master' into anyio
uSpike e0c9967
Add types-dataclasses
uSpike 27ec6f7
Merge branch 'master' into anyio
uSpike 2b9dd22
Re-implement starlette.concurrency.run_until_first_complete and add a…
uSpike 643d107
Fix type on handler callable
uSpike d0ca3f2
Apply review comments to clarify run_until_first_complete scope
uSpike File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.