Add a way to shutdown SyncIoBridge #4932
Labels
A-tokio-util
Area: The tokio-util crate
C-feature-request
Category: A feature request.
E-easy
Call for participation: Experience needed to fix: Easy / not much
E-help-wanted
Call for participation: Help is requested to fix this issue.
M-io
Module: tokio/io
Is your feature request related to a problem? Please describe.
SyncIoBridge
(#4146) does not provide a way to call theshutdown()
function of its internaltokio::io::AsyncWrite
instance.Describe the solution you'd like
Add a
shutdown()
function toSyncIoBridge
, which invoke the shutdown() function ofsrc
fieldDescribe alternatives you've considered
n/a
Additional context
Take
tokio::io::DuplexStream
as en example. Itsshutdown()
can be used to close the writer of stream, but in the following example, I have no way to shutdown:The text was updated successfully, but these errors were encountered: