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
BufWriter::IntoInner returns the inner type directly. But in std it flushes before returning, returning an IntoInnerError if it doesn't work. The same behavior applies for the (still unimplemented) LineWriter struct.
We should ensure it flushes, and convert the function to an async fn using ret!.
There's prior art on how to create async fns like this in async_std + the stdlib is a good reference on the expected behavior. This should make this fairly straight forward to pick up if anyone's interested. Thanks!
BufWriter::IntoInner
returns the inner type directly. But in std it flushes before returning, returning anIntoInnerError
if it doesn't work. The same behavior applies for the (still unimplemented)LineWriter
struct.We should ensure it flushes, and convert the function to an
async fn
usingret!
.There's prior art on how to create async fns like this in async_std + the stdlib is a good reference on the expected behavior. This should make this fairly straight forward to pick up if anyone's interested. Thanks!
Refs
The text was updated successfully, but these errors were encountered: