You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just an ergonomics feature but it would be nice to allow a consumer of IMuxedStream that receives a stream that will automatically close when the consumer is done with it.
asyncwith_get_a_new_stream(peer_id, protocols) asstream:
# do stuff with stream# stream.close called on `__aexit__`.
The text was updated successfully, but these errors were encountered:
Just an ergonomics feature but it would be nice to allow a consumer of
IMuxedStream
that receives a stream that will automaticallyclose
when the consumer is done with it.The text was updated successfully, but these errors were encountered: