summaryrefslogtreecommitdiffstats
path: root/tokio/src/sync/watch.rs
diff options
context:
space:
mode:
authorJohn Van Enk <vanenkj@gmail.com>2020-01-06 08:28:26 -0800
committerLucio Franco <luciofranco14@gmail.com>2020-01-06 11:28:26 -0500
commit84ff73e687932d77a1163167b938631b1104d54f (patch)
tree71ed81ca8f811e62a46a4a67c423aaed2171372a /tokio/src/sync/watch.rs
parent32e15b3a24ac177c92a78eb04e233534583eae17 (diff)
tokio: remove documentation stating `Receiver` is clone-able. (#2037)
* tokio: remove documentation stating `Receiver` is clone-able. The documentation for `broadcast` stated that both `Sender` and `Receiver` are clonable. This isn't the case: `Receiver`s cannot be cloned (and shouldn't be cloned). In addition, mention that `Receiver` is `Sync`, and mention that both `Receiver` and `Sender` are `Send`. Fixes: #2032 * Clarify that Sender and Receiver are only Send and Sync if T is Send or Sync.
Diffstat (limited to 'tokio/src/sync/watch.rs')
0 files changed, 0 insertions, 0 deletions