mirror of
https://github.com/async-rs/async-std.git
synced 2025-04-25 17:56:49 +00:00
Merge pull request #535 from async-rs/docs-sender-recv
backlink channel types
This commit is contained in:
commit
c4ba11ff95
1 changed files with 9 additions and 1 deletions
|
@ -71,6 +71,11 @@ pub fn channel<T>(cap: usize) -> (Sender<T>, Receiver<T>) {
|
||||||
|
|
||||||
/// The sending side of a channel.
|
/// The sending side of a channel.
|
||||||
///
|
///
|
||||||
|
/// This struct is created by the [`channel`] function. See its
|
||||||
|
/// documentation for more.
|
||||||
|
///
|
||||||
|
/// [`channel`]: fn.channel.html
|
||||||
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
|
@ -298,8 +303,11 @@ impl<T> fmt::Debug for Sender<T> {
|
||||||
|
|
||||||
/// The receiving side of a channel.
|
/// The receiving side of a channel.
|
||||||
///
|
///
|
||||||
/// This type implements the [`Stream`] trait, which means it can act as an asynchronous iterator.
|
/// This type receives messages by calling `recv`. But it also implements the [`Stream`] trait,
|
||||||
|
/// which means it can act as an asynchronous iterator. This struct is created by the [`channel`]
|
||||||
|
/// function. See its documentation for more.
|
||||||
///
|
///
|
||||||
|
/// [`channel`]: fn.channel.html
|
||||||
/// [`Stream`]: ../stream/trait.Stream.html
|
/// [`Stream`]: ../stream/trait.Stream.html
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
|
|
Loading…
Reference in a new issue