Skip to content

Clarify what tx and rx mean in docs #16761

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
wants to merge 1 commit into from

Conversation

mrmonday
Copy link
Contributor

This question comes up relatively frequently on IRC - "what do tx and rx mean?". This change adds a short explanation.

@alexcrichton
Copy link
Member

If I were reading the docs I would then ask the question "Why isn't the sending type a Transmitter?" It may be useful to expand the explanation a little bit to something like:

// Create a shared channel which can be sent along from many tasks
// where tx is the sending half (tx for transmission), and rx is the receiving
// half (rx for receiving).
let (tx, rx) = channel();

@mrmonday mrmonday force-pushed the patch-1 branch 2 times, most recently from 4b404bc to df6bf3b Compare August 26, 2014 14:38
Add a short explanation of what tx and rx mean in terms of channels.
@mrmonday
Copy link
Contributor Author

Updated with your wording.

@brson
Copy link
Contributor

brson commented Aug 26, 2014

Thanks for the docs!

bors added a commit that referenced this pull request Aug 27, 2014
This question comes up relatively frequently on IRC - "what do tx and rx mean?". This change adds a short explanation.
@bors bors closed this Aug 27, 2014
matthiaskrgr pushed a commit to matthiaskrgr/rust that referenced this pull request Mar 10, 2024
minor: remove `ignore-hidden = false`

run `typos` locally and get
```txt
error: `ND` should be `AND`
  --> ./.git/objects/20/a90c507b0c92883b10c29447a56d30bf9e8d57:1:515
  |
1 | xM�{L�a�Cʒ��2�DG$�Q�+1�M.[��9o��z/��<ou�Tn�ICn��˺g�VG�BFmg�j5˵�:2�p�z�����w�ۃ]�V�˼��>>���T$�
                                                                                                Đ��bgJ博3�gzr�ꝛQ�p��x����� u���"Ui"�gw��f�;�>�;���d��0�~�nvx>���+u��;c\��~�T,Ԏ�ԁ��惵���>�[����B�L8R` ��8V� ��~��lrN~��>�s�Y�Z�p"�T�mFA܁�KJ[�b�Ko���>^��Y�
                     c��7�r��0�>{Wl��ꉔ����#��E��L���#�ehm�fiA�h��9#E�������W�(\�h���`���Ca� ��H��� ;qp������:(.i���{*>�"���%���=;4O/ =�:�EZ�gD�)m��������A��ϋ��c�I���e�"��8�[r�%�}CY����=p[F�D,G��d��،��}ms��^��^�.�UC�ND
  |
```
we should ignore `.git`
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants