-
Notifications
You must be signed in to change notification settings - Fork 138
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
Expose ResourceGuard #627
Comments
I've considered this. It would help if you elaborated on the use case. |
i can't speak for others, but i implemented a i also made the mistake of not exposing it publicly in that library, which led folks at work writing further-downstream code atop AnyIO+aforementioned middle lib to again reimplement a it's a tiny implementation to copy around everywhere, but i'd love to see it exposed in AnyIO. Footnotes
|
My client class uses a background task to read messages from the socket and turn them into objects, then publishes them on a channel for the downstream users to read. It's essentially the same reason as socket streams having their receive/sends wrapped in a conflict detector. |
Things to check first
Feature description
ResourceGuard should be exposed publically, instead of requiring importing from an internal module.
Use case
It's a useful object for implementing streams that use pumping tasks behind the scenes.
The text was updated successfully, but these errors were encountered: