backlink channel types

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
new-scheduler
Yoshua Wuyts 5 years ago
parent 4e1d79adb1
commit 31f129ebe7
No known key found for this signature in database
GPG Key ID: 24EA8164F96777ED

@ -71,6 +71,11 @@ pub fn channel<T>(cap: usize) -> (Sender<T>, Receiver<T>) {
/// The sending side of a channel.
///
/// This struct is created by the [`channel`] function. See its
/// documentation for more.
///
/// [`channel`]: fn.channel.html
///
/// # Examples
///
/// ```
@ -298,8 +303,11 @@ impl<T> fmt::Debug for Sender<T> {
/// 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
///
/// # Examples

Loading…
Cancel
Save