<commit_before>
.. module:: evergreen.channel

Synchronization primitives: Channel
===================================

Channels are the simples mechanism for 2 tasks to exhcnage data.


.. py:class:: Channel

    A synchronous communication pipe between 2 tasks.

    .. py:method:: send(data)

        Send data over the channel. The calling task will be blocked if
        there is no task waiting for the data on the other side.

    .. py:method:: send_exception(exc_type, exc_value=None, exc_tb=None)

        Send the given exception. It will be raised on the receiving task.

    .. py:method:: receive

        Wait for data to arrive on the channel.
<commit_msg>Fix small typo in channel documentation<commit_after>
.. module:: evergreen.channel

Synchronization primitives: Channel
===================================

Channels are the simplest mechanism for 2 tasks to exchange data.


.. py:class:: Channel

    A synchronous communication pipe between 2 tasks.

    .. py:method:: send(data)

        Send data over the channel. The calling task will be blocked if
        there is no task waiting for the data on the other side.

    .. py:method:: send_exception(exc_type, exc_value=None, exc_tb=None)

        Send the given exception. It will be raised on the receiving task.

    .. py:method:: receive

        Wait for data to arrive on the channel.

{'fraction_non_alphanumeric': 0.11524434719183078, 'fraction_numerical': 0.0029175784099197666, 'mean_word_length': 3.182926829268293, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2707540', 'n_tokens_mistral': 367, 'n_tokens_neox': 339, 'n_words': 161}