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
{{ message }}
This repository has been archived by the owner on May 6, 2018. It is now read-only.
Is an implementation of the AsyncWrite trait allowed to block on flushing?
The first sentence of the trait doc comment indicates that this should not be the case:
This trait inherits from io::Write and indicates that an I/O object is nonblocking, meaning that it will return an error instead of blocking when bytes cannot currently be written, but hasn't closed.
But the remainder of the documentation only explicitely talks about how write should handle WouldBlock errors, not about flush.
As of the latest version of partial-io, we're now treating WouldBlock during flush the same as WouldBlock during write as far as notifying the current task goes.
Is an implementation of the AsyncWrite trait allowed to block on
flush
ing?The first sentence of the trait doc comment indicates that this should not be the case:
But the remainder of the documentation only explicitely talks about how
write
should handleWouldBlock
errors, not aboutflush
.cc facebookarchive/rust-partial-io#17
The text was updated successfully, but these errors were encountered: