We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d6c7af commit f61374fCopy full SHA for f61374f
1 file changed
tokio/src/io/async_write.rs
@@ -27,11 +27,10 @@ use std::task::{Context, Poll};
27
/// * `Poll::Ready(Err(e))` for other errors are standard I/O errors coming from the
28
/// underlying object.
29
///
30
-/// This trait importantly means that the `write` method only works in the
31
-/// context of a future's task. The object may panic if used outside of a task.
32
-///
33
/// Utilities for working with `AsyncWrite` values are provided by
34
-/// [`AsyncWriteExt`].
+/// [`AsyncWriteExt`]. Most users will interact with `AsyncWrite` types through
+/// these extension methods, which provide ergonomic async functions such as
+/// `write_all` and `flush`.
35
36
/// [`std::io::Write`]: std::io::Write
37
/// [`Write::write`]: std::io::Write::write()
0 commit comments