Title: Use `anyio` for async code, so that users can choose either `asyncio` or `trio` backends · Issue #771 · slackapi/bolt-python · GitHub
Open Graph Title: Use `anyio` for async code, so that users can choose either `asyncio` or `trio` backends · Issue #771 · slackapi/bolt-python
X Title: Use `anyio` for async code, so that users can choose either `asyncio` or `trio` backends · Issue #771 · slackapi/bolt-python
Description: A framework to build Slack apps using Python. Contribute to slackapi/bolt-python development by creating an account on GitHub.
Open Graph Description: A framework to build Slack apps using Python. Contribute to slackapi/bolt-python development by creating an account on GitHub.
X Description: A framework to build Slack apps using Python. Contribute to slackapi/bolt-python development by creating an account on GitHub.
Opengraph URL: https://github.com/slackapi/bolt-python
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Use `anyio` for async code, so that users can choose either `asyncio` or `trio` backends","articleBody":"👋 Over at @anthropics we're enthusiastic users of both Slack and async Python - but instead of `asyncio` we use [structured concurrency with Trio](https://trio.readthedocs.io/en/stable/).\r\n\r\nThis makes using slack-bolt's `AyncClient` pretty awkward, because now we have multiple async backends running, can't use our standard helper functions, and things generally start going wrong. Building a copy of the whole stack for each backend isn't feasible (thus also [sans-io designs](https://sans-io.readthedocs.io/)), and hence this request to support using *either* `asyncio` or `trio` as the backend.\r\n\r\n[Using `anyio` makes this pretty easy](https://anyio.readthedocs.io/en/stable/) - just ask e.g. FastAPI! - and it should be fully compatible with existing `asyncio`-using code. I realize it's not a particularly small task, but [Trio is downloaded about 200k times per day](https://pepy.tech/project/trio?versions=*) and good support for that makes a big difference.","author":{"url":"https://github.com/Zac-HD","@type":"Person","name":"Zac-HD"},"datePublished":"2022-11-20T22:30:49Z","url":"https://github.com/slackapi/bolt-python/issues/771"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:3c266f76-ef11-05db-a1c8-35506c987cfa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E46C:44C57:856C4:BEF15:6AFEB90F |
| html-safe-nonce | 94eecb7616944d7b0c6caa47435b9c02730689a5e8297f166623d2877bf6c6e1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDZDOjQ0QzU3Ojg1NkM0OkJFRjE1OjZBRkVCOTBGIiwidmlzaXRvcl9pZCI6IjU1OTcxOTc5NDE2NzM0NzQzMTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4fa8a0882fa228f368f831dc5a56f3a18ec63195bc86539706d16e81fe2d4a35 |
| hovercard-subject-tag | repository:268795735 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/slackapi/bolt-python/issues/771 |
| twitter:image | https://opengraph.githubassets.com/4a1c6483f15233dc84588633afe588d892561ebb7a1dd5cc274fca518ec12215/slackapi/bolt-python |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4a1c6483f15233dc84588633afe588d892561ebb7a1dd5cc274fca518ec12215/slackapi/bolt-python |
| og:image:alt | A framework to build Slack apps using Python. Contribute to slackapi/bolt-python development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 95b2753c978240785d6cca00783c00a371b2d7d9879bb32e305170a1b19bd28e |
| turbo-cache-control | no-cache |
| go-import | github.com/slackapi/bolt-python git https://github.com/slackapi/bolt-python.git |
| octolytics-dimension-user_id | 6962987 |
| octolytics-dimension-user_login | slackapi |
| octolytics-dimension-repository_id | 268795735 |
| octolytics-dimension-repository_nwo | slackapi/bolt-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 268795735 |
| octolytics-dimension-repository_network_root_nwo | slackapi/bolt-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3f25273206cd841171bca0002261ae4c9757d934 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width